Changing Local TimeZone in a Program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • brianlum@gmail.com

    #1

    Changing Local TimeZone in a Program

    Hi,

    I need to if a calendar function works for different time zones. I can
    get the time of UTC and local time by doing:

    DateTime utc = System.DateTime .UtcNow;
    DateTime local = System.DateTime .Now;

    That would give me UTC and local time, so in my case, it would be
    Pacific Time. But how can I change my timezone so that I can get the
    local time in the East Coast, for example.

    With thanks,
    Brian

Working...