DateTime.Now vs. DateTime.UtcNow

后端 未结 13 1513
暗喜
暗喜 2020-11-28 17:43

I\'ve been wondering what exactly are the principles of how the two properties work. I know the second one is universal and basically doesn\'t deal with time zones, but can

13条回答
  •  情书的邮戳
    2020-11-28 18:16

    A little bit late to the party, but I found these two links (4guysfromrolla) to be very useful:

    Using Coordinated Universal Time (UTC) to Store Date/Time Values

    Advice for Storing and Displaying Dates and Times Across Different Time Zones

提交回复
热议问题