How to get UTC equivalent for my local time in C#

前端 未结 3 613
情话喂你
情话喂你 2021-02-08 03:08

My machine is on PDT and if I say DateTime.Now, then I will get a local time which is say equivalent to Sep-18th 2012 6:00:00 AM. I want to get UTC equivalent for this datetime

3条回答
提交回复
热议问题