Devi

Devi

  • NA
  • 55
  • 16.3k

Get universal time instead of system time

Apr 6 2017 4:31 AM
Hello I would like to get the current year irrespective of system time I tried using but this is but when I change the system time it is giving the respective year. Let's say the current year is 2017 and if I change my date to last year it should still show 2017
  1. DateTime.UtcNow.Year   

Answers (2)