Skip to content

Commit 2f1735d

Browse files
author
Björn Rixman
committed
update docs
1 parent 6ce002c commit 2f1735d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

website/content/docs/widgets/date.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: date
33
label: "Date"
44
---
55

6-
**Deprecated** – use datetime widget with `timeFormat: false`
7-
86
The date widget translates a date picker input to a date string. For saving date and time together, use the datetime widget.
97

108
- **Name:** `date`
@@ -13,6 +11,8 @@ The date widget translates a date picker input to a date string. For saving date
1311
- **Options:**
1412
- `default`: accepts a date string, or an empty string to accept blank input; otherwise defaults to current date
1513
- `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.
1616
- **Example:**
1717
```yaml
1818
- label: "Birthdate"

website/content/docs/widgets/datetime.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ The datetime widget translates a datetime picker to a datetime string. For savin
1010
- **Data type:** Moment.js-formatted datetime string
1111
- **Options:**
1212
- `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.
1516
- **Example:**
1617
```yaml
1718
- label: "Start time"

0 commit comments

Comments
 (0)