How can I adjust the time on my ASP pages to show my local time?

"The server's time shows time relative to the Eastern Time Zone. I want the time to be offset to show my local time instead of your time. How can I do that?"

There are a couple ways to do this and you should consult an ASP programming book for different options. One way to do this however is as below:

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

Add Feedback