PDA

View Full Version : Conert Date/Time from one Time Zone to another


EdScript
09-17-2002, 04:35 AM
Does anyone know how to convert a non-Eastern Standard Time Date/Time to EST ?
Thanks, Ed

Ie: Convert a current ‘CST’ date/time in Iowa to an EST date/time

example:
Time in Iowa (CST 02/20/02 09:46)
Convert to: EST 02/20/02 10:46

Curr_zone =‘CST’
Curr_Date = ‘02/20/02’
Curr_Time = ‘09:46’
EST_DATE_TIME = convert_to EST(Curr_zone Curr_Date Curr_Time )

Other timezones that need converting:
'ALA' /* Alaska */
'MST' /* Colorado */
'HAW' /* Hawaii */
'CST' /* Iowa */
'PST' /* Idaho */