Forum Discussion

zachjudge's avatar
zachjudge
Regular Visitor
5 years ago
Solved

UTC timezone issue

Hi, I don't know if this is related to all the other timezone issues people have (none of the solutions I've found seem to work) because I don't think I can solve by having a local timezone slicer...
  • v-kelly-msft's avatar
    5 years ago

    Hi zachjudge ,

    You can use DateTime.AddZone function to achieve your requirement. This function adds the timezonehours as an offset to the input datetime value and returns a new datetimezone value.

    DateTime.AddZone([Date],-12)

     

    Reference
    https://msdn.microsoft.com/en-us/library/mt253514.aspx

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!