Extended Date Time Format
Official Web Site  

 

Examples

  • year: 2004
  • year, questionable: 2004?
  • year, approximate: 2004~
  • Some year between 2000 and 2099: 20??
  • year and month: 2004-06
  • year and month, questionable: 2004-06?
  • year and month, approximate: 2004-06~
  • Some month in 2004: 2004-??
  • year, month, day: 20040611
  • year, month, day; questionable: 20040611?
  • year, month, day; approximate: 20040611~
  • Some day in the month 06/2004: 200406??
  • date and time: 20040611T121212
  • range, years: 2004/2006
  • range, year-month/year-month: 2004-06/2006-08
  • range, unknown start: unknown/2006
  • range, unknown end: 2004/unknown
  • range, open end:2004/open
  • xs:date:
    • 2008-02-03 (February 3, 2008)
    • 10000-01-01 (January 1 of the year 10,000)
    • -10000-01-01 ( January 1 of the year 10,000 BC)
  • xs:dateTime: 2004-06-04T12:12:12
  • Time Zone:
    • 2004-01-01T10:10:10Z
    • 2004-01-01T10:10:10+01:00
  • BC date: -1000-01-01
  • More extensive support for ranges (added September 2009). Previously, range support was limited to date and month, thus you could express "January through March of 2007" (200701/200703), but not "January 1 through March 3 of 2007". This is now supported (20070101/20070303) and in addition, times, including timezone indicator, may be included at either end of the range. So the following now validate:
    • range, year-month-day/year-month-day: 20050705/20050706
    • range, year-month-day-time/year-month-day-time: 20050705T0715/20050705T0720
    • range, time zone indicated: 20050705T0715-0500/20050705T0720-0500
    • range, with hyphens: 2005-07-05T07:15-05:00/2005-07-05T07:20-05:00
    • Z for time zone: 2004-01-01T10:10:10Z/2004-01-01T10:10:10+01:00