dateThe date widget displays a locale specific date.
The formData value that can be handled by this widget must be a string that matches pattern YYYY-MM-DD.
{
"schema": {
"properties": {
"myDateProperty": {
"type": "string"
}
}
},
"form": [
"myDateProperty"
],
"uiSchema": {
"myDateProperty": {
"widget": "date"
}
},
"formData": {
"myDateProperty": "2018-06-14"
}
}
This will render a text input field that formats an entered date. In addition, a date picker will be attached to the field. The exact render format depends on the locale of the client.