How to convert a date to UTC properly and then convert it back?
问题 I'm struggling with converting DateTime to UTC, the concept and all, something I'm not understanding correctly. When I get a date time string, say "7/10/2013", I simply do Convert.ToDateTime("7/10/2013").ToUniversalTime(); This will record it as "7/10/2013 4:00:00 AM " in the database. Server is located at U.S East Coast (-5). Of course, during July 2013, DST is still being observed, so offset during that time is -4, such the extra 4 hours 4:00:00 AM " recorded as UTC. As I'm writing this