I have the following ASP.Net MVC Controller method:
public ActionResult DoSomething(DateTime utcDate) { var localTime = utcDate.ToLocalTime(); }
or this:
var localTime = new DateTimeOffset(utcDate,TimeSpan.FromHours(0)) .ToLocalTime().DateTime;