Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
TryCF Gist
<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