Re: Add 3 hours to Now()

This is a discussion on Re: Add 3 hours to Now() within the Cold Fusion forums in Application Servers & Tools category; Here is the syntax for the dateAdd #timeFormat(dateAdd("h",3,now()),"h:mm tt")# However what if you change hosts? If you have the timezone of your client / user then you can get the UTC time and then cast that to your client's time. All of my time in my applications centers around UTC so that way I don't have to worry about the fact that the server is in Dallas and the client is in Seattle and their times don't line up....

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 05:08 PM
jblayter
Guest
 
Default Re: Add 3 hours to Now()

Here is the syntax for the dateAdd
#timeFormat(dateAdd("h",3,now()),"h:mm tt")#

However what if you change hosts? If you have the timezone of your client /
user then you can get the UTC time and then cast that to your client's time.
All of my time in my applications centers around UTC so that way I don't have
to worry about the fact that the server is in Dallas and the client is in
Seattle and their times don't line up.

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:32 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.