Date

GetDisplayText

Description

Returns a date as a text string, with an optional choice of formats.

Syntax

strText = dt:GetDisplayText([strFormat])

Parameters

strFormat (optional)
DAY Day as number (1-31 for Gregorian dates)
DAY_OF_WEEK Day of the week
MONTH_NUMBER Month as number (1-12 for Gregorian dates)
MONTH_NAME Month name
MONTH_AND_DAY Month & Day
YEAR Year
LONG Date in Long Format
COMPACT Date in Compact Format
ABBREV Abbreviated format. See "Date Formats" in the main help.
ABBREV2 Ditto
ABBREV3 Ditto
ABBREV4 Ditto
XDATE1 See "Date Formats" in the main help.
XDATE2 Ditto
XDATETYPE Ditto
 

Return Value

strText
string: The date in text format.