Posted on: 6/18/2015 10:27:16 AM | Views : 1259

 Code
DateTime datetime = TimeZoneInfo.ConvertTime(localtime, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById("Japan Standard Time") );
Error:
Server Error in '/DateTime' Application. The time zone ID 'Japan Standard Time' was not found on the local computer. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.TimeZoneNotFoundException: The time zone ID 'Japan Standard Time' was not found on the local computer. Source Error: Line 36: { Line 37: Line 38: DateTime datetime = TimeZoneInfo.ConvertTime(localtime, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById("Japan Standard Time") ); Line 39: Line 40: Source File: c:\Users\*****\Desktop\DateT ...

Go to the complete details ...