Data Formats
ZUi is using various standard data formats for its various attributes that are the same across all components.
Locale
All locale-related components are supporting a locale
attribute, conforming to BCP 47 lanugage tags, e.g. en-US
. If you do not explicitly pass one, the components try to deduct it from the browser, which is not very reliable; the default is en-US
.
Dates
All date-related components are having date attributes, which are ISO 8601 date strings, e.g. 2021-08-21T11:00:00.000+02:00
.
Invalid Dates
Invalid Dates, are ISO 8601 conforming dates, that are not valid, e.g. 2021-02-29T11:00:00.000+02:00
, they are partially supported and will properly render in the TextfieldDatePicker
, albeit they obviously do not pass validation.