Skip to content

Instantly share code, notes, and snippets.

@bardware
Last active December 7, 2017 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bardware/40c46e282a290110d94a71abf9fffed2 to your computer and use it in GitHub Desktop.
Save bardware/40c46e282a290110d94a71abf9fffed2 to your computer and use it in GitHub Desktop.
Different output in ACF 11 and 2016
<cfset dNow = Now()>
<cfset dateTimeVar = #dateTimeFormat( dNow, "yyyy.MM.dd HH:nn:ss" )# />
<cfdump var="#dNow#">
<cfdump var="#dateTimeVar#">
<cfoutput>
#parseDateTime( dateTimeVar, "yyyy.MM.dd HH:mm:ss" )#
#parseDateTime( dateTimeVar, "yyyy.MM.dd HH:nn:ss" )#
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment