Showing timezone along with time
-
I am changing the timezone and want to display the zone like this 1/14/12 4:52:50 AM PST with the code i am not able to get exactly the output that i want. How can i get time along wit PST in the end
var timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
var offset = timeZoneInfo.GetUtcOffset(DateTime.Parse(newRX.Header.SentTimeOffset));
var dto = new DateTimeOffset(DateTime.Parse(newRX.Header.SentTimeOffset), offset) -
I am changing the timezone and want to display the zone like this 1/14/12 4:52:50 AM PST with the code i am not able to get exactly the output that i want. How can i get time along wit PST in the end
var timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
var offset = timeZoneInfo.GetUtcOffset(DateTime.Parse(newRX.Header.SentTimeOffset));
var dto = new DateTimeOffset(DateTime.Parse(newRX.Header.SentTimeOffset), offset)