Date Values

Dates are defined using a string:

let dt date = '2020'
let dt2 date = '2020-01-31'
let dt3 date = '2020-01-31T18:30:59.333'

Date strings are based on this Java date format: yyyy-MM-dd'T'HH:mm:ss.SSSZ It is the ISO 8601 format.

Date strings do not need all the fields in the ‘yyyy-MM-dd'T'HH:mm:ss.SSS’ format. They can contain any subset starting from the left.

Date StringImplied FormatDescription
‘2020’‘yyyy’beginning of year. 2020-01-01T00:00:00.000
‘2020-03’‘yyyy-MM’beginning of month. 2020-03-01T00:00:00.000
‘2020-03-31’‘yyyy-MM-dd’beginning of day. 2020-01-31T00:00:00.000


Dates are in UTC timezone by default. You can change the Delia default timezone using the configure statement.

configure timezone=="GMT-0500"  //change to EST

You can define a date string containing a timezone. Delia will convert it to the current Delia default timezone. The following will result in a date value of ‘2020-01-31T17:00:00-0000’ UTC time.

let dt = '2020-01-31T09:00:00-0800'