Hi All,

I am building a global scheduling application in asp.net and I am having a hard time figuring out how to handle the different timezones. In my application when the user selects the date and time of an appointment I save the date time to my DB in UTC format. The problem is how do I calculate the correct time. For example if the user in newyork EST and selects july 5 8:00 AM and the server is PST Timzone and I call fromDate.ToUniversalTime() the time gets converted to UTC as if the time is 8:00 AM PST and not 8:00 AM EST. I hope that makes sense.

thanks for your help,

tom

Use classes from System.Globalization namespace.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.