Skip to content

Instantly share code, notes, and snippets.

View binodtechversant's full-sized avatar
🎯
Focusing

binodtechversant

🎯
Focusing
View GitHub Profile
@binodtechversant
binodtechversant / gist:d1ce352f7286e00fb6bd4218f65bf699
Created May 21, 2021 16:16
CF - Spreadsheet download - dynamic
<cfset q = queryNew("Name,Date", "varchar,date")>
<cfloop index="x" from="1" to="10">
<cfset queryAddRow(q)>
<cfset querySetCell(q, "Name", "Name #x#")>
<cfset querySetCell(q, "Date", "4/4/22")>
</cfloop>
<cfdump var="#q#" abort>
<!--- <cfset dfStyle = {dataformat = "m/d/yy"}>--->
<cfset o = spreadsheetNew('dateTest', true)>