Skip to content

Instantly share code, notes, and snippets.

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 trycf/84b9c432715c933de55ef912cce4db06 to your computer and use it in GitHub Desktop.
Save trycf/84b9c432715c933de55ef912cce4db06 to your computer and use it in GitHub Desktop.
TryCF Gist
<cftry>
<!--- <cfdump var="#getLocale()#"> --->
<cfset SetLocale("de_CH")>
<cfset past_date = "#LSDateFormat("11.10.2014", "dd. mmm yyyy")# #LSTimeFormat("01:00")#">
<cfdump var="#past_date#"><br>
<cfset current_date = "#LSDateFormat(Now(), "dd. mmm yyyy")# #LSTimeFormat(Now())#">
<cfdump var="#current_date#"><br>
<cfset diff_months = #DateDiff("m", "#past_date#", "#current_date#")# >
<cfcatch>
<cfoutput>#cfcatch.message#</cfoutput>
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment