Solved

SpreadsheetFormatColumn - formatting a date

Posted on 2010-09-20
2
1,221 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

778 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