fn.formatDateTime( $value as Date, $picture as String, [$language as String], [$calendar as String], [$country as String] ) as String
The given dateTime |
The desired string representation of the given dateTime
The desired language for string representation of the dateTime
|$calendar||The only calendar supported at this point is "Gregorian" or "AD".|
|$country||$country is used the specification to take into account country specific string representation.|
Dates before October 15, 1582 (the start of the Gregorian calendar) will not return the correct dateTime value.
If the specified picture string includes a fractional second width that is seven or more decimal places, then the fractional seconds are truncated (not rounded) on the seventh and greater width.
fn.formatDateTime(fn.currentDateTime(), "[Y01]/[M01]/[D01] [H01]:[m01]:[s01]:[f01]") => 14/12/05 10:37:25:63 fn.formatDateTime(fn.currentDateTime(), "[Y0001]/[M01]/[D01] [H01]:[m01]:[s01]:[f01]","en","AD","US") => 2014/12/05 10:40:02:16