2
Answers

Get universal time instead of system time

Devi

Devi

7y
212
1
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)