I am using prayer webpart i need to show the prayer time based on local time zone of country
how to get local time zone using c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sumit JoshiPosted Aug 21, 2015, 3:41 AM
Vaikesh K PPosted Aug 21, 2015, 3:37 AM
Sumit JoshiPosted Aug 21, 2015, 1:32 AM
const string dataFmt = "{0,-30}{1}";
const string timeFmt = "{0,-30}{1:MM-dd-yyyy HH:mm}";
TimeZone curTimeZone = TimeZone.CurrentTimeZone;
// What is TimeZone name?
Console.WriteLine( dataFmt, "TimeZone Name:", curTimeZone.StandardName );
Rajeesh MenothPosted Aug 21, 2015, 12:29 AM