You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/*
|
|
* C# Program to get the Local Time
|
|
*/
|
|
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();
|
|
}
|
|
} |