Sunday, March 11, 2012

datetime and utc

It seems that if I use DateTime.Now.ToUniversalTime(), I get what I want.
Does that sound correct?
Wally

wrote in message news:1150726@.66.129.67.203...
> Ok, i am obviously doing something wrong or I have something set wrong. My
> system is on US EST time. That is GMT - 5. The current time is
> approximately 2 pm. I checked and the UTC time is 19:00. When I get a
> dateime back in Atlas, I am getting a time of 09:00. That makes me think
> that I am somehow have my time set in the wrong direction, but the time
> seems to be set correctly on my system. Any thoughts on this that could be
> helpful?
>
> Wally
>
> --
> Wallace B. McClure
> "The Harder I Work, the Luckier I Get."
> Listen to "The ASP.NET Podcast" at http://www.aspnetpodcast.com/
> Database Award: http://url123.com/vc3er
> Microsoft MVP - Visual Developer ASP/ASP.NET
> AspInsider
> "AJAX for ASP.NET" Coming Soon!
> ADO.NET Book: http://url123.com/vc2bu
> 865-693-3004
> 118 Durwood Rd.
> Knoxville, TN 37922
> http://www.scalabledevelopment.com/
> Blog: http://weblogs.asp.net/wallym/
>

No comments:

Post a Comment