W3C DateTime Values

DateTime strings conform to the W3C schema data types: dateTime, date and time.

Data validation is case-sensitive and requires specification of uppercase alphabetic characters within these values.

DateTime values may specify one of the following formats:

Date components must be delimited by '-'; time components must be delimited by ':'. The value text may not include any embedded blanks.

Time values must be expressed in 24-hour (military) format.

Each component has a fixed or minimum width (requiring leading zeros as necessary):

The Second specification is optional, for example 15:02 is synonymous with 15:02:00.

A DateTime specification may optionally specify a Z suffix indicating Greenwich Mean Time (GMT). If the Z is not specified, the DateTime value refers to client-local time (CLT).

Examples

2003-04-23T15:34Z  // April 23, 2003 3:34pm GMT
2003-04-23Z        // April 23, 2003 00:00 GMT
15:34Z             // Base date, 3:34pm GMT
15:34              // Base date, 3:34pm local time

Following are the other restrictions:

Only a subset of the W3C specifications is supported. The following is not supported:

In addition, a Z suffix is interpreted as denoting GMT rather than UTC (Coordinated Universal Time). Whereas GMT is based on astronomical observations, UTC is based on an atomic clock - and takes into account periodic leap second corrections. Practically speaking, GMT and UTC are the same.