2022.1

Table Of Contents
l time()
l timeLong()
l timeMedium()
l timeShort()
Note
The locale also influences the output of the different Date functions; see "Locale" on
page828.
Tip
To format a date from a date field in the record set, you can enter a custom pattern via
the Text Script Wizard; see "Using the Text Script Wizard" on page849, "Formatting
variable data" on page853 and "Date and time patterns" on page1356).
date(value, pattern)
Formats a date object using a custom pattern.
value
A Date object. A Date can contain a date and time.
pattern
String. The custom pattern may consist of pattern letters, separating symbols and quoted text,
for example: "MMMM dd, yyyy"; see "Date and time patterns" on page1356. Note that the
repetition of pattern letters determines the exact presentation.
dateLong(value)
Formats a date as long string representation, for example April 1, 2016.
value
A Date object. A Date can contain a date and time.
dateMedium(value)
Formats a date as medium string representation, for example 01/04/16.
Page 1352