2.6 Dates

Date formats can be specified in string tables or as variables in a template. In the templates, dates are represented as numbers that are translated into various date formats using the date function (see the section on functions).

The following sample date formats could appear in a template or STRINGTABLE.

# 10/27/98
numericDate=M/d/yy
# 2:30 PM
meetingTime=h:mm a
# Friday, November 13, 1998
fullDate=EEEE, MMMM d, yyyy
#September 1998
monthDate=MMMM yyyy

Assuming these formats exist in a string table, a template would use one of these formats as a parameter to the date function as follows:

{VAR date(apptDate, {STRING fullDate})}

This results in the following string being inserted:

Friday, July 16, 1999