Forum Discussion
UTC timezone issue
- 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.aspxBest Regards,
KellyDid I answer your question? Mark my post as a solution!
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!
Hi Kelly,
How do I implement that because I feel like I've tried everything I can find on google that has this solution.
Cheers,
- v-kelly-msft5 years agoCommunity Support
Hi zachjudge ,
Sorry for the late reply.
I found a good example to address your issue:
https://powerbitalks.com/2020/08/convert-utc-into-local-time-zone-po.html
Best Regards,
KellyDid I answer your question? Mark my post as a solution!