parseDateTime
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 Required
pop_conversion string
Default: standard
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.
Values:
standardpop
Examples Sample code invoking the parseDateTime function
<cfset dateTimeVar = #dateTimeFormat(now(), "yyyy.MM.dd HH:nn:ss ")# />
<cfoutput>
#parseDateTime(dateTimeVar)#
</cfoutput>
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/parsedatetime