I’m using cfspreadsheet to generate an excel sheet of data. There are a couple of columns that are dates, and are displaying like this:
1988-09-19 00:00:00.0
I’d like to format them to display in m/d/yyyy format. I tried using spreadsheetFormatColumn:
<cfset spreadsheetFormatColumn(s, {dataformat="m/d/yyyy"}, 8) />
But it doesn’t change anything. How can I format the column using coldfusion?
As Leigh mentioned in a comment, this seems to be a coldfusion bug. I got around this by converting the dates to varchars on the sql server side (using
convert(varchar, myDateField, 101)).