You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/content/docs/widgets/date.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ title: date
3
3
label: "Date"
4
4
---
5
5
6
-
**Deprecated** – use datetime widget with `timeFormat: false`
7
-
8
6
The date widget translates a date picker input to a date string. For saving date and time together, use the datetime widget.
9
7
10
8
-**Name:**`date`
@@ -13,6 +11,8 @@ The date widget translates a date picker input to a date string. For saving date
13
11
-**Options:**
14
12
-`default`: accepts a date string, or an empty string to accept blank input; otherwise defaults to current date
15
13
-`format`: optional; accepts Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/); defaults to raw Date object (if supported by output format)
14
+
-`dateFormat`: optional; boolean or Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/). If `true` use default locale format.
15
+
-`timeFormat`: optional; boolean or Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/). If `true` use default locale format, `false` hides time-picker. Defaults to false.
-`default`: accepts a datetime string, or an empty string to accept blank input; otherwise defaults to current datetime
13
-
-~~`format`~~: **Deprecated** (use `dateFormat` and/or `timeFormat` instead) optional; accepts Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/); defaults to raw Date object (if supported by output format)
14
-
-`dateFormat`: boolean or Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/). If `true` use default locale format.
13
+
-`format`: optional; accepts Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/); defaults to raw Date object (if supported by output format)
14
+
-`dateFormat`: optional; boolean or Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/). If `true` use default locale format.
15
+
-`timeFormat`: optional; boolean or Moment.js [tokens](https://momentjs.com/docs/#/parsing/string-format/). If `true` use default locale format, `false` hides time-picker.
0 commit comments