Date and Time
How to use the Date and DateTime value types
The Date
value type represents a date, e.g. 14th July 2021.
The DateTime
value type represents a date and time, e.g. 14th July 2021 15:21:34.
Properties
Property Name | Type | Required | Description |
---|---|---|---|
value | string[] | true | The date values array. Each value follows the ISO 8601 format e.g. yyyy-mm-dd or yyy-mm-ddThh:mm:ssZ |
Allowed Children
None
Requirements
Must contain a valid date in ISO 8601 format, e.g. yyyy-mm-dd
or yyy-mm-ddThh:mm:ssZ
Return Type
date[ ]
Examples
{
"type": "Date",
"properties": {
"value": ["2021-07-14"]
}
}
{
"type": "DateTime",
"properties": {
"value": ["2021-07-14T15:21:34.000Z"]
}
}