Home / Software / Tips and Tricks / How can I set the local time for different time zones?

How can I set the local time for different time zones?

Updated:  02/06/2012 07:02 AM
Author:  Shiju Mathews

Status:    Resolved.


When the web sites are running in a central server and the web site is used by different countries, it is a task to set the time for different countries. Also this is an issue when we are moving the web sites from server to server in different time zone.

One solution is to display the time for each country using the TimeZoneInfo class.



Use appropriate string for the argument of function FindSystemTimeZoneById() depending on the location. This information can be obtained from msdn.microsoft.com