Time - Date String Format (ISO 8601)

> (Data|State|Operand) Management and Processing > (Data Type|Data Structure) > Time > Time - (Instant|Date) (representation|type)

1 - About

The ISO 8601 is a calendar system

The ISO-8601 calendar system is the modern civil calendar system used today in most of the world. It is equivalent to the proleptic Gregorian calendar system, in which today's rules for leap years are applied for all time.

For most applications written today, the ISO-8601 rules are entirely suitable. However, any application that makes use of historical dates, and requires them to be accurate will find the ISO-8601 approach unsuitable.

Advertising

3 - Syntax

It's also a date string format specification

Data elements and interchange formats – Information interchange – Representation of dates and times is an international standard covering the exchange of date and time-related data.

YYYY-MM-DDThh:mm:ss[.mmm]

YYYYMMDD[ hh:mm:ss[.mmm]]

where:

  • the brackets indicate that the fraction of second component is optional.
  • The time component is specified in the 24-hour format.
  • The T is a literal character separating the date and the time

4 - Example

2013-03-04

2004-05-23T14:25:10

2004-05-23T14:25:10.487

5 - Documentation / Interference