i have hosted a site on a server that have different time zone than my local country,
how can I convert the server time to my local time with taking into consideration the Daylight Saving
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you looked at the
TimeZoneInfoclass. You should be able to convert to and from local to server time through there whilst maintaining DST.There is also an Open Source time zone implementation by Jon Skeet et. al call Noda-Time.