Code:
using System;
class Program
{
static void Main()
{
TimeZone zone = TimeZone.CurrentTimeZone;
DateTime univ = zone.ToUniversalTime(DateTime.Now);
Console.WriteLine("Universal Time is {0}",univ);
Console.Read();
}
}
Output:
Universal Time is 10/22/2013 5:23:25 PM
More C# Programs: