Daylight saving time calculation

M

mazdotnet

Hi guys,

I have to make a event signup page for our company that would display
the event time/date in 3 different time zones (Eastern - New York,
Central - Chicago, and Pacific - San Francisco). To do this. I convert
the inputed date from local time zone and convert it into UTC and store
it in the database (correct me if I'm wrong please). Next to display it
I would add the correct time zone difference value (-5 for Eastern).
How to do I handle the daylight saving time though? For example the -5
Eastern time is right now -4. Is there a way to do this automatically?
Any samples would be greatly appreciated.


Thanks
M.
 
G

Guest

You're right, keep UTC value in database and then display calculated user's
local time (to check if the asp.net sever is in daylight saving time period
use System.TimeZone.CurrentTimeZone.IsDaylightSavingTime(...))

hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top