2018-01-03 20:14:15 -02:00
---
2018-10-01 20:00:57 -04:00
title: date
2018-08-14 11:33:13 -06:00
label: "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:**
2018-08-14 07:37:07 -07:00
```yaml
2018-08-14 11:33:13 -06:00
- label: "Birthdate"
name: "birthdate"
widget: "date"
default: ""
format: "MMM Do YY"
2018-08-14 07:37:07 -07:00
```