TimeZone creation
In this chapter you will learn:
Current TimeZone
TimeZone.CurrentTimeZone
method
returns a TimeZone
object based on the current local settings.
using System;/*ja v a2s.co m*/
using System.Text;
class Sample
{
public static void Main()
{
TimeZone zone = TimeZone.CurrentTimeZone;
Console.WriteLine(zone.StandardName);
Console.WriteLine(zone.DaylightName);
}
}
The output:
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » Date, Time, TimeZone