|
|
#### Table of Contents
|
|
|
[Date](#date)<br>
|
|
|
[Time](#time)
|
|
|
[Time](#time)<br>
|
|
|
[Datetime](#datetime)
|
|
|
|
|
|
## Date
|
|
|
|
|
|
Dates must be expressed as `YYYY-MM-DD` (10 characters long) according to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601).
|
|
|
|
|
|
Good examples:
|
|
|
Examples:
|
|
|
|
|
|
* `2018-04-24` 👍
|
|
|
* `2012-12-12` 👍
|
|
|
* `2018-04-24` 👍 instead of `4/24/2018` 👎
|
|
|
* `2012-12-12` 👍 instead of `12.12.2018` 👎
|
|
|
* `2018-4-24` 👍 instead of `2018-4-24` 👎
|
|
|
|
|
|
Bad examples:
|
|
|
## Time
|
|
|
|
|
|
* `4/24/2018` 👎
|
|
|
* `12.12.2018` 👎
|
|
|
* `2018-4-24` 👎 (must be zero padded)
|
|
|
Times *must* be expressed as `HH:MM` (5 characters long) according to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). Midnight *must* be expressed as `00:00`.
|
|
|
|
|
|
## Time
|
|
|
Examples:
|
|
|
|
|
|
Dates *must* be expressed as `YYYY-MM-DDTHH:MM:SSZ` (20 characters long) according to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). The time zone *must* be [UTC/Zulu](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
|
|
|
* `17:22` 👍
|
|
|
* `05:33` 👍 instead of `5:33` 👎
|
|
|
* `00:00` 👍 instead of `24:00` 👎
|
|
|
|
|
|
Good examples:
|
|
|
## Datetime
|
|
|
|
|
|
* `2018-04-24T00:00:00Z` 👍
|
|
|
* `2012-12-12T13:14:15Z` 👍
|
|
|
Datetimes *must* be expressed as `YYYY-MM-DDTHH:MM:SSZ` (20 characters long) according to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). The time zone *must* be [UTC/Zulu](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) and midnight *must* be expressed as `YYYY-MM-DDT00:00:00Z`.
|
|
|
|
|
|
Bad examples:
|
|
|
Examples:
|
|
|
|
|
|
* `2018-04-24T00:00:00+00:00` 👎 (use trailing `Z` instead of `+00:00`)
|
|
|
* `2012-12-12T00:00:00+02:00` 👎 (convert to UTC/Zulu))
|
|
|
* `2018-03-16T09:17:53` 👎 (add trailing `Z` for time zone UTC/Zulu) |
|
|
* `2018-04-23T00:00:00Z` 👍 instead of `2018-04-23T24:00:00Z` 👎
|
|
|
* `2012-12-12T13:14:15Z` 👍 instead of `2012-12-12T13:14:15+00:00` 👎
|
|
|
* `2012-12-11T22:00:00Z` 👍 instead of `2012-12-12T00:00:00+02:00` 👎
|
|
|
* `2018-03-16T09:17:53Z` 👍 instead of `2018-03-16T09:17:53Z` 👎 |