Formats date and time values using locale-specific date and time formatting conventions.

LSDateTimeFormat (date , mask); LSDateTimeFormat (date [, mask, locale]); LSDateTimeFormat (date [, mask, locale, timeZone]); → returns A formatted date and time value.

Argument Reference for the LSDateTimeFormat function


Required: Yes
A date/time object, in the range 100 AD-9999 AD.


Required: No
Mask that has to be used for formatting.


Required: Yes
The time-zone information. You can specify in either of the following formats. Abbreviation and Full Name.


Required: No
Locale to use instead of the locale of the page when processing the function..

Links more information about LSDateTimeFormat

Examples sample code invoking the LSDateTimeFormat function

Mask = Short Example

LSDateTimeFormat("2015-04-11 19:02", "short")

Fork me on GitHub