DateTime
A date, date-time or partial date (e.g. just year or year + month).
Definition
If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema-type constraints but may be zero-filled or ignored. Dates SHALL be valid dates.
Type | Pattern |
---|---|
datetime | ^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]{1,9})?)?)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)?)?)?$ |
{
"<propertyKey>": "2023-01-01T00:00:00-04:00"
}
Updated 6 months ago