XFA Specification
Chapter 23, FormCalc Specification
Date And Time Built-in Functions
844
DateFmt()
This function returns a
date picture clause,
given a date format style.
Syntax
DateFmt([n1[, k1]]])
Parameters
n1
An integer identifying the date format style, whose value has the following meaning:
Value supplied in first argument
0 (default)
1
2
3
4
k1
Requests the locale-specific style …
Default style
Short style
Medium style
Long style
Full style
is a locale identifier string, as described in
“Specifying a Locale (Locale Identifier String)” on
page 828.
If k1 is omitted, the
prevailing locale
is used.
Returns
The
date picture clause
or null if any of its mandatory parameters are null.
If the given date format style is invalid, the function returns default-style date picture clause.
Examples
Calling DateFmt() as follows …
DateFmt()
DateFmt(1)
DateFmt(2, "fr_CA")
DateFmt(3, "de_DE")
DateFmt(4, "es_ES")
Returns
"MMM D, YYYY", which is the
default date picture clause
"M/D/YY"
"YY-MM-DD"
"D. MMMM YYYY"
"EEEE D' de 'MMMM' de 'YYYY"
See Also
Num2Date()
,
Date2Num()
, and
LocalDateFmt()
Home Index Bookmark Pages
Pages: Home Index All Pages