Name

LSParseDateTime

Synopsis

LSParseDateTime(datestring)

Returns a locale-specific ColdFusion date/time object from datestring. LSParseDateTime( ) is similar to the ParseDateTime( ) function except it doesn’t handle POP dates. Example:

<CFLOOP INDEX="locale" LIST="#Server.Coldfusion.SupportedLocales#">
  <CFSET temp = SetLocale(locale)>
  <CFOUTPUT>
    <P><B>#locale#</B><BR>
    #LSParseDateTime("#LSDateFormat(Now(  ))# #LSTimeFormat(Now(  ))#")#<BR> 
  </CFOUTPUT>
</CFLOOP>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.