Hey, I am trying to get the current GMT time in vb.net and can’t seem to figure it out. A lot of google threads pointed to using DateTime.UtcNow but that gives an incorrect GMT time. Any ideas?
MsgBox(DateTime.UtcNow) 'outputs 11/21/2010 14:46:41
http://wwp.greenwichmeantime.com/ gives a time of 11/20/2010 11:46:41
It is
DateTime.UtcNow.If the output is “incorrect” then it’s because either your system clock or your timezone setting is incorrect.