Skip to content

Commit 6e5cd65

Browse files
committed
Clarify README.md
Add remark that clarifies that the input format is a moment.js format.
1 parent 17fdec8 commit 6e5cd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ DateTimeField
3333
| ------------ | ------- | ------- | ----------- |
3434
| **dateTime** | string | moment().format('x') | Represents the inital dateTime, this string is then parsed by moment.js |
3535
| **format** | string | "x" | Defines the format moment.js should use to parse and output the date to onChange |
36-
| **inputFormat** | string | "MM/DD/YY h:mm A" | Defines the way the date is represented in the HTML input |
36+
| **inputFormat** | string | "MM/DD/YY h:mm A" | Defines the way the date is represented in the HTML input. It must be a format understanable by moment.js |
3737
| **onChange** | function | x => console.log(x) | Callback trigger when the date changes. `x` is the new datetime value. |
3838
| **showToday** | boolean | true | Highlights today's date |
3939
| **size** | string | "md" | Changes the size of the date picker input field. Sizes: "sm", "md", "lg" |

0 commit comments

Comments
 (0)