C# How to get Time Zone Date and Time in the Philippines

The TimeZone class recognizes local time zone, and can convert times between Coordinated Universal Time (UTC) and local time. A TimeZoneInfo object can represent any time zone, and methods of the TimeZoneInfo class can be used to convert the time in one time zone to the corresponding time in any other time zone. The members of the TimeZoneInfo class support the following operations:

  1. Retrieving a time zone that is already defined by the operating system.
  2. Enumerating the time zones that are available on a system.
  3. Converting times between different time zones.
  4. Creating a new time zone that is not already defined by the operating system.

Time Zone in Philippine Time is UTC+08:00 we used TimeZoneID available class name "Taipei Standard Time" because it same with UTC+08:00 Time offset from Greenwich Mean Time (GMT).

C# How to get Time Zone Date and Time in the Philippines

Using this function help us to solved the problem of getting the current date in philippines because my hosting website is located in U.S. based company which the server time is different here in the Philippines. Now i can view the Attendance DTR Real Time Monitoring in accurate date to display employee timelogs of current date.

Good Luck!!! (Happy Coding....)