Created
June 18, 2021 10:39
-
-
Save trycf/a9866532c9dd489fd05984385f4a9b1d 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
<cfscript> | |
dates = queryNew( | |
"date", | |
"date", | |
[ | |
[createDate(2011, 3, 24)], | |
[createDate(2016, 8, 17)] | |
] | |
) | |
dateParts = queryExecute( | |
"SELECT MONTH(date) AS month, YEAR(date) AS year FROM dates", | |
{}, | |
{dbtype="query"} | |
) | |
writeDump(dateParts) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment