Monday, 28 April 2014

UTC to Local

//get UTC Time
string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ssZ");
//Convert to Local Time
DateTime localDateTime = DateTime.Parse(strDate);
DateTime utcDateTime = localDateTime.ToUniversalTime();