Determines whether a string is a valid representation of a date/time value in the current locale.
True, if the string can be formatted as a date/time value in the current locale; False, otherwise.
LSIsDate(date [, locale])
CreateDateTime, GetLocale, IsNumericDate, LSDateFormat, ParseDateTime, SetLocale; Handling data in ColdFusion in the Developing ColdFusion Applications
ColdFusion (2018 release): Introduced named parameters.
ColdFusion 8: Added the locale parameter.
ColdFusion MX:
Parameter |
Description |
|---|---|
date |
A string or a variable that contains one |
locale |
Locale to use instead of the locale of the page when processing the function |
A date/time object is in the range 100 AD-9999 AD.To set the default display format of date, time, number, and currency values, use the SetLocale function.
<cfscript>
date="10-16-2018"
locale=getLocale()
writeOutput("Locale is: " & locale & "<br/>")
writeOutput(LSISDate(date,locale))
</cfscript>
Output
Locale is: English (US)
NO
Sign in to your account