locked
Convert timezone based on offset and not name RRS feed

  • Question

  • User1870461982 posted

    currently i am been using following menthod to convert from one time zone to another

                    TimeZoneInfo cstZone1 = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time");
                    TimeZoneInfo cstZone2 = TimeZoneInfo.FindSystemTimeZoneById("UTC");
                    DateTime cstTime = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(currdatee, cstZone1.Id.ToString(), cstZone2.Id.ToString());

    Is there a way that i can pass the offset value diretly to timezoneinfo e.g +05:30 for India instead of passing the name.

    Saturday, July 23, 2011 12:12 AM

Answers

All replies