2020.2

Table Of Contents
Note
The locale also influences the output of the different Date functions; see "Locale" on
page768.
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 page788, "Formatting
variable data" on page792 and "Date and time patterns" on page1280).
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1280. 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.
value
A Date object. A Date can contain a date and time.
Page 1276