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> | |
function monthAbbrAsInt(required string input) { | |
var dte = input & " 1, 2000"; | |
if ( isDate( dte ) ) { | |
return dateFormat(dte, "m"); | |
} | |
return 0; | |
} | |
writedump(monthAbbrAsInt("jul")); |
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> | |
writedump(server.coldfusion.productversion); //4.5.1.004 | |
function noRecordsTest() { | |
var q = queryNew("columnA"); | |
//return no records | |
var qData = queryExecute("SELECT columnA FROM q", {}, {dbtype="query"}); |