XFA Specification
Chapter 23, FormCalc Specification
Date And Time Built-in Functions
847
LocalDateFmt()
This function returns a string containing a localized date format, given a date format style.
Syntax
LocalDateFmt([n1[, k1]])
Parameters
n1
is an integer identifying the date format style. The following table describes the possible values for
n1
.
n1
0
1
2
3
4
k1
Style requested for the localized date format
Locale-specific default style
Locale-specific short style
Locale-specific medium style
Locale-specific long style
Locale-specific 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
localized date format
or null if any of its parameters are null.
If the given format style is invalid, the function returns default-style localized date format.
The date picture clauses returned by this function are not usable in the functions
Date2Num()
and
Num2Date()
.
Examples
Calling LocaleDateFmt() as follows …
LocalDateFmt(1, "de_DE")
LocalDateFmt(2, "fr_CA")
LocalDateFmt(3, "de_CH")
LocalDateFmt(4, "es_ES")
Returns
"tt.MM.jj"
"aa-MM-jj"
"t. MMMM uuuu"
"EEEE t' de 'MMMM' de 'uuuu"
See Also
DateFmt()
Home Index Bookmark Pages
Pages: Home Index All Pages