LSDateFormat(date [, mask ])

Formats the date portion of a date/time value using the locale convention. Like DateFormat LSDateFormat returns a formatted date/time value. If no mask is specified, LSDateFormat returns a date value using the locale-specific format.

date

Date/time object in the period from 100 AD to 9999 AD.

mask

Set of characters that are used to show how ColdFusion should display the date:

Usage

When passing date/time value as a string, make sure it is enclosed in quotes. Otherwise, it is interpreted as a number representation of a date/time object returning undesired results.