> -----Original Message-----
> From: Sam [mailto:sammyc...@gmail.com]
> Sent: Tuesday, April 07, 2009 3:35 PM
> To: cf-community
> Subject: JS Question
> 
> 
> I'm using Date.parse(myDate) to compare dates and store in a hidden
> form field. Now I found out I need to change it back to a formatted
> date for display.
> 
> Google is not helping me.

If you're looking for "short" you might not like this, but my date
extensions will definitely do it:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_D
ateExtensions/Index.cfm

There's a lot of functionality there and it's all open-source - if you want
to streamline it you can easily just rip out all the methods you have no use
for.  The Date.prototype.dateFormat method sounds like it's all you'd need
and this method should work just fine on its own.

If you have a specific format in mind you can most likely make a much
smaller function to do that, specifically - but it won't be as versatile of
course.

Hope this helps,

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:294315
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to