Take a look at the Datediff function.
>I remember once I asked to convert UTC date format (in milliseconds
>starting from midnight 1970 jan) to normal date. And solution was
>
>#dateformat(dateadd("s",1057580739,"1/1/1970"),"yyyy/mmm/dd")#
>
>= 2003/Jul/07
>
>
>
>Now how to do the reverse. Means now I've got 7th July 2003, how do i
>convert it to milliseconds starting from midnight jan 1970 (UTC)?
>
>Thanks
>
>Shaz
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4