0

The results that I get back are in UTC and I need this to be in my current timezone.

var accidentDetail = db.sp_InsertAccidentRegister(Convert.ToDateTime(GetFieldValue(accidentReportDetail.fields, "Date/Time of Accident"))

I'm new to coding, especially in C# so any recommendations/suggestions are welcomed.

  • 2
    [DateTime.ToLocalTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tolocaltime?view=net-6.0) – quaabaam Sep 08 '22 at 16:32
  • [This](https://stackoverflow.com/questions/15169679/how-to-convert-a-datetime-to-specific-timezone-in-c) might contain the answer you need. – Kronos Sep 08 '22 at 16:39
  • Does this answer your question? [How to convert a datetime to specific timezone in c#?](https://stackoverflow.com/questions/15169679/how-to-convert-a-datetime-to-specific-timezone-in-c) – Muhammad Sulaiman Sep 13 '22 at 13:15

0 Answers0