tags:

views:

52

answers:

1

Hello All

How can i get my machine timezoneinfo dynamically? right now i am doing it by hard code timezone.

        string indTimeZoneKey = "**India Standard Time**";
        TimeZoneInfo indTimeZone = TimeZoneInfo.FindSystemTimeZoneById(indTimeZoneKey);
+3  A: 

You could use the Local property of TimeZoneInfo.

weichsel
thanks Weichsel
Pankaj