XFA Specification
Chapter 23, FormCalc Specification
Date And Time Built-in Functions
849
Num2Date()
This function returns a date string, given a number of days since the
epoch.
Syntax
Num2Date(n1 [,f1 [, k1]])
Parameters
n1
is the number of days.
f1
is a
date picture clause.
If f1 is omitted, the
default picture clause
is used.
k1
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 string or null if any of its parameters are null.
The formatted date is in the format given in f1, governed by the locale given in k1.
If the given date is invalid, the function returns an empty string.
Examples
Num2Date(1, "DD/MM/YYYY")
returns "01/01/1900".
Num2Date(35139, "DD-MMM-YYYY", "de_CH")
returns "16-Mrz-1996".
Num2Date(
Date2Num("31-ago-98",
"DD-MMM-YY", "es_ES") - 31, "D' de 'MMMM' de 'YYYY", "pt_BR")
returns "31 de Julho de 1998".
See Also
Date2Num()
,
DateFmt()
and
Date()
Home Index Bookmark Pages
Pages: Home Index All Pages