Skip to content

Instantly share code, notes, and snippets.

Created April 3, 2015 19:03
Show Gist options
  • Save anonymous/b6963465485f5fc114a2 to your computer and use it in GitHub Desktop.
Save anonymous/b6963465485f5fc114a2 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
function monthAbbrAsInt(required string input) {
var dte = input & " 1, 2000";
return dateFormat(dte, "m");
}
writedump(monthAbbrAsInt("jul"));
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment