Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/832717d08da13d0ed2f12a4d93d651d5 to your computer and use it in GitHub Desktop.
Save trycf/832717d08da13d0ed2f12a4d93d651d5 to your computer and use it in GitHub Desktop.
TryCF Gist
<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