If you're on CF7, give this a whirl:

#createObject("java", "java.util.Date").init(javaCast("long", 1108389720000))#

On CF6.1 it doesn't work, because CF insists on using an int for the
value, which it overflows.  CF7 might be different.

cheers,
barneyb

On 4/27/05, Jim Rathmann <[EMAIL PROTECTED]> wrote:
> I have a question that I am not sure if ColdFusion can calculate. Is there 
> any way to convert a Date/Time field that is in Milliseconds to a readable 
> Date/Time using ColdFusion? You can do it using the following JavaScript:
> 
> var theDateObj = new Date(parseFloat(1108389720000));
> var d = theDateObj.toLocaleString();
> 
> and the result is: "Monday, February 14, 2005 9:02:00 AM"
> 
> I don't want to convert it with JS I would like to try it with CF. If anyone 
> could help it would be much appreciated thanks.
> 
> Thanks,
>    Jim

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:204766
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