Parses a date/time string according to the English (U.S.)
locale conventions. (To format a date/time string for other
locales, use the LSParseDateTime function.)

parseDateTime(dt_string [, pop_conversion]) → returns date

Argument Reference

dt_string string

pop_conversion string
Default: standard

- standard: function does no conversion.
- pop: specifies that the date/time string is in POP format, which includes the local time of the sender and a time-zone offset from UTC. ColdFusion applies the offset and returns
a value with the UTC time.
- Apart from these two values, this parameter allows you to directly specify the format in which to parse the given string.
  • standard
  • pop

Sample code invoking the parseDateTime function

<cfset dateTimeVar = #dateTimeFormat(now(), "yyyy.MM.dd HH:nn:ss ")# /> 

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub