|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all, I got a problem solving on how to convert the following time zone all into EST. My server is currently in EST but i need to convert the following time zone [PST,MST,CST] all into EST given all the exact time. eg 09:00 AM PST, 1:00 PM MST, 2:00 PM CST etc etc.
PST to EST MST to EST CST to EST I've been working for this a week now and i hope somebody will give me sample code Cabute |
|
#2
|
|||
|
|||
|
maybe this will help
I don't know about dealing with time zones per say... but I use an offset time function in my scripts to account for differences between a host's server and user's local time...
It looks like this: (simplified from what I use) Code:
Function OffsetTime(xTime,xOffset)
xHour = Hour(xTime)+xOffset
yTime=Split(xTime,":")
yTime(0)=IIf(xHour>23,CStr(xHour-24),CStr(xHour))
OffsetTime = TimeValue(join(yTime,":"))
End Function
You'll have to provide the time value and the actual offset (in hours) that you want to apply. Tim |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Time Zone Conversion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|