LSDateTimeFormat

Formats a date in a locale-specific format

Method Signature

LSDateTimeFormat(date=[any], mask=[string], locale=[string], timezone=[string])

Arguments

Argument
Type
Required
Description
Default

date

any

true

The date string or object

mask

string

false

Optional format mask, or common mask

locale

string

false

Optional locale designation of the output ( e.g. es-SA )

timezone

string

false

Optional specific timezone to apply to the date ( if not present in the date string )

Examples

Last updated

Was this helpful?