Code:
using System;
class Program
{
static void Main()
{
TimeZone zone = TimeZone.CurrentTimeZone;
DateTime local = zone.ToLocalTime(DateTime.Now);
Console.WriteLine("The Local Time is : {0}",local);
Console.ReadLine();
}
}
Output:
The Local Time is : 10/22/2013 11:01:51 PM
More C# Programs: