Date

Property Type: date

DateTime values are sent through the API as string values formatted in simplified extended ISO 8601 format, which is always 24 characters long: YYYY-MM-DDTHH:mm:ss.sssZ (eg. 1966-07-12T16:34:01.000Z). The timezone is always zero UTC offset, as denoted by the suffix "Z". Though the parser will attempt to make sense of any sane date value, values should be sent in the above extended ISO format.

A Date property can also be configured as "Date only" for cases where the time zone is irrelevant, such as a birth dates. For these, the caller must send a string in the YYYY-MM-DD format, and responses will be in the same format (eg. 1973-07-16).

Property Options

Name

Type

Default

Description

dateOnly

Boolean

false

'If true, the input must be a string in the YYYY-MM-DD format, and responses will be in the same format (eg. 1973-07-16)'

Property Validators

Required name: required

Date Validator name: date definition:

Option

Type

Default

Description

allowNull

Boolean

false

Allow null entries

min

Date

Earliest valid date

max

Date

Latest valid date

Last updated