Created
September 20, 2022 06:17
-
-
Save trycf/84b9c432715c933de55ef912cce4db06 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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