Sivaji Tata

Sivaji Tata

  • 1.9k
  • 139
  • 653

I have an issue with getting dates back in the right timezone

Mar 3 2021 5:17 PM
  1. book.StartDateTime = TimeZoneInfo.ConvertTimeToUtc(DateTime.SpecifyKind(book.StartDateTime.Value, DateTimeKind.Unspecified), ToolsHelper.OlsonTimeZoneToTimeZoneInfo(locationDetails.TimeZone)); // book.CreatedDate.Value.ToUniversalTime();  

Answers (1)