lsDateTimeFormat

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

lsDateTimeFormat(date [, mask, locale, [timeZone]]); → returns string

lsDateTimeFormat Argument Reference

date
Required

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

mask

Mask that has to be used for formatting.

locale

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

timeZone

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

Links more information about lsDateTimeFormat

Examples sample code invoking the lsDateTimeFormat function

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

Fork me on GitHub