TermdateTime
Description

XSD DateTime type

The dateTime is specified in the following form "YYYY-MM-DDThh:mm:ss.s+" where:

  • YYYY indicates the year
  • MM indicates the month
  • DD indicates the day
  • T indicates the start of the required time section
  • hh indicates the hour
  • mm indicates the minute
  • ss indicates the second
  • s+ (if present) represents the fractional seconds

Note: 

  • All components are required!
  • A 'Z' shall be appended it the dateTime is in UTC.

Comments

The following is an example of a dateTime declaration in a schema:<xs:element name="startdate" type="xs:dateTime"/>

An element in your document might look like this:<startdate>2002-05-30T09:00:00</startdate>
If UTC:  <startdate>2002-05-30T09:00:00Z</startdate>

2021-12-13: Updated with "s+"

XML typexs:dateTime
StatusApproved
Ref from
Labels

Describe time zone for all of date, time and dateTime.