Solved

SpreadsheetFormatColumn - formatting a date

Posted on 2010-09-20
2
1,249 Views
Last Modified: 2013-12-24
Unfortunatly the documentation on cfspreadsheet is very limited on the formatting side.
I only see how you can format a monetary column but I dont see how to format a date column.  The recordset I am returning is a date/time field so I should be able to do this if this feature is allowed.

What im trying to get is:

<cfset SpreadsheetFormatColumn(sObj, {dataformat="MM/DD/YYYY"}, myDateField)>

Open in new window


Any ideas or how to set this formating?  Or even better a good resource for the different formatting features that are allowed on these spreadsheet functions?

thanks
0
Comment
Question by:WebStalkers
2 Comments
 
LVL 6

Accepted Solution

by:
reiters earned 250 total points
ID: 33720782
I have always used Ben Nadel's POI Utility.  It uses that same Apache utility behind the scenes but he has been improving the utility for a few years.  You may find you have better success with it.  I have never used the new tools in CF9 so I can not tell you which is better.

http://www.bennadel.com/projects/poi-utility.htm
0
 
LVL 52

Assisted Solution

by:_agx_
_agx_ earned 250 total points
ID: 33721836
>> {dataformat="MM/DD/YYYY"}

Honestly I'm not convinced it works ... I'd either format the dates as strings in your sql, or use POI as reiters suggested.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question