Created
August 18, 2025 18:48
-
-
Save trycf/832717d08da13d0ed2f12a4d93d651d5 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or 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
<cfscript> | |
var today = DateFormat(now()); | |
var today_11D = DateAdd("d", 11, now()); | |
var today_6M = DateAdd("m", -6, today_11D); | |
if ( today_6M < today_11D ){ | |
today = "#today_6M#/" | |
} | |
writedump(daysinmonth(today_11D)); | |
writedump(daysinmonth(today_6M)); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment