Mike,

there's a format object you can use if you are building your dataprovider
from the query as in this example:

------------------------------------------------------------------
var fmt : DateFormat = DateFormat.getDateInstance(DateFormat.SHORT);

for(i = 0; i < refRs.getLength(); i++) {
                        // format the date objects
                        dt = new Date(refRs.getItemAt(i).reqDt);
                        rec = fmt.format(dt);
                        dt = new Date(refRs.getItemAt(i).dtAssigned);
                        cont = fmt.format(dt);

                        tmp = {         REQDT: rec,
                                        DTASSIGNED: cont,
                                        NAME: refRs.getItemAt(i).name,
                                        };
                        refData.push(tmp);
                }
---------------------------------------------------------------------


-----Original Message-----
From: Mike Nimer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 04, 2005 2:02 PM
To: CF-Talk
Subject: RE: formatting a date in cfgrid


You are using Flash Remoting, not the query attribute of CFGRID?

If you are doing that you can't use the cfgrid date format logic, it
won't be applied automatically. You'll have to format the string in your
sql. And send it over that way.

--nimer



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223263
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to