A user on some timezone (say "A") comes to one of my forms and fills a date and time in somne format (Say "mm-dd-yyyy format"). This date and time must be greater than the current date and time. The server recieving the requests is running on some timezone (say "B"). A script running on the same server should fire off an email to the user on the user prefilled date and time. But the timezones of the user and the server are different so how can I program the script to send the email at the correct date and time.
Hi, I'm a little confused with your question but I had to do some stuff with the TimeZone class myself and this might help:
This will format the current date and time whereever your server is to be displayed like this: Fri, Oct.04/02 at 11:17 PM which is EST in New York. You can use the method getAvailableIDs() to find the timezone you will want. Hope this helps, -Pat