2018-01-03 20:14:15 -02:00
---
label: "Date"
2018-07-25 07:47:26 -04:00
target: date
2018-01-03 20:14:15 -02:00
---
The date widget translates a date picker input to a date string. For saving date and time together, use the datetime widget.
- **Name:** `date`
- **UI:** date picker
- **Data type:** Moment.js-formatted date string
- **Options:**
- `default` : accepts a date string, or an empty string to accept blank input; otherwise defaults to current date
2018-05-25 12:03:44 -04:00
- `format` : optional; accepts Moment.js [tokens ](https://momentjs.com/docs/#/parsing/string-format/ ); defaults to raw Date object (if supported by output format)
2018-01-03 20:14:15 -02:00
- **Example:**
```yaml
- label: "Birthdate"
name: "birthdate"
widget: "date"
default: ""
format: "MMM Do YY"
2018-07-25 07:47:26 -04:00
```