Date/Time Over Midnight

I have a server based on US Pacific TZ but the site is used in the US Eastern TZ.

So throughout all of my code I convert any times stored in the SQL tables to +3; however, I'm not sure how to handle the date.

For example, something is done on the website at 1:00 AM on 04/28/2010.  When it sends the data to the database it puts 04/27/2010 10:00 PM.  That, I'm fine with that it keeps doing that.

But if I want to dispaly this on the site how can I make sure that the date dispalys the 28th because if I do my timeformat of +3 to display the correct EST of 1:00 AM is there a way to dispaly the date as the 28th without adding a bunch of CF statements?

For example, the only way I can figure out how to do this is to say that if the time is after 21:00:00 then add a day to the date, else, display the date as is.
Lee R Liddick JrReporting AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

azadisaryevCommented:
use DateAdd() function to add 3 hours to your datetime object:

dateadd("h", 3, dateobject)

http://cfquickdocs.com/cf8/?getDoc=DateAdd

Azadi
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee R Liddick JrReporting AnalystAuthor Commented:
Excellent...Thanks again!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.