Skip to main content
Version: 11.2

XML representation of date values

In general, the ISO 8601 standard is used for representing date values within XML documents. A description of the ISO 8601 standard for dates can be found at:

http://www.iso.ch/

In the area of exporting and importing XML documents, USoft supports the following date formats.

XML Export IO Format​

When exporting date values to an XML document, this IO format is produced:

CCYY-MM-DDThh:mm:ss

Example​

2008-11-23T20:05:30

XML Import IO Formats​

When importing an XML document, these date value IO formats are recognised:

FormatExampleDescription
YYMMDD850412A specific date in the current century
YY-MM-DD85-04-12Extended format
-YYMM-8504A specific year and month in the current century
-YY-MM-85-04Extended format
-YY-85A specific year in the current century
--MMDD--0412A specific day of a month
--MM-DD--04-12Extended format
--MM--04A specific month
---DD---12A specific day
CCYYMMDD19850412
CCYY-MM-DD1985-04-12
CCYYMM198504
CCYY-MM1985-04
CCYY1985
YYWwwD85W155Year, week and day in the current century
YY-Www-D85-W15-5Extended format
YYWww85W15Year and week only in the current century
YY-Www85-W15Extended format
-YwwwD-5W155Year of the current decade, week and day only
-Y-Www-D-5W15-5Extended format
-WwwD-W155Week and day only of the current year
-Www-D-W15-5Extended format
-Www-W15Week only of the current year
-W-D-W-5Day only of the current week
---D---5Day only of any week
-mm:ss-20:50

A specific minute and second of the hour

(Extended format)

CCYYMMDDThhmmss19850412T101530Calendar date and local time of the day
CCYYMMDDThhmm19850412T1015
CCYYMMDDThh19850412T10
1985-04-12T10:15:30Extended format
CCYY-MM-DDThh:mm1985-04-12T10:15
CCYY-MM-DDThh1985-04-12T10
CCYYDDDThhmmss1985102T235030Ordinal date and local time of the day
CCYYDDDThhmm1985102T2350
CCYYDDDThh1985102T23
1985-102T23:50:30Extended format
CCYY-DDDThh:mm1985-102T23:50
CCYY-DDDThh1985-102T23
CCYYWwwDThhmmss1985W155T235030Date indentified by calendar week and day numbers and local time of the day
CCYYWwwDThhmm1985W155T2350
CCYYWwwDThh1985W155T23
1985-W15-5T23:50:30Extended format
CCYY-Www-DThh:mm1985-W15-5T23:50
CCYY-Www-DThh1985-W15-5T23

Unsupported date formats​

The following data value IO formats are not supported:

FormatExampleDescription
hh,h23,3A specific hour of the day and decimal fraction of the hour
-mm,m-20,9A specific minute of the hour and a decimal fraction of the minute
-mmss,s-2050,5A specific minute and second of the hour and a decimal fraction of the second
-mm:ss.s-20:50,5Extended format
--ss,s--50,5A specific second of the minute and a decimal fraction of the second
HhmmssZ232030ZTime with Coordinated Universal Time (UTC)
23:20:30ZExtended format
HhmmZ2320Z
hh:mmZ23:20Z
HhZ23Z

Midnight time​

There are two representations of midnight time:

00:00:00 000000

24:00:00 240000

The Rules Engine only supports '00:00:00' when exporting and importing XML documents.

Period of time​

Period of time is a duration with a start time and an end time. The Rules Engine does not support the period of time IO format.