c# - "DateTime.Now.ToShortTimeString" displays wrong time of day (offset by some hours) -


so tried using

 datetime.now.toshorttimestring(); 

method gives me wrong time example current time 9:09 pm when run code gives me 3:09 pls me.

well , timezoneinfo class. can convert time utc time , tomezone want. ( see methods converttimetoutc , converttimefromutc ) advantage here can run on 2 timezones


Comments