Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing time on a page

Status
Not open for further replies.

spencern

Programmer
Dec 20, 2001
78
0
0
US
Hello,
I've got a page that I'm trying to print out the current Pacific time on but I've run into problems because my server is based in england and is 8 hours off. Does anyone know if there is anything I could do to my code to make it adjust to -8 hours of what the server's time is?

<%response.Write WeekdayName(weekday(date), true) & &quot; &quot; & MonthName(Month(date), true) & &quot; &quot; & day(date()) &&quot; &quot;& Hour (Now) & &quot;:&quot; & Minute (Now) & &quot;:&quot; & Right (Time, 2)&&quot; &quot;& Year(Date())%>

It seems like I might run into problems because after 4PM pacific time, it will be the next day on the server.

Thanks for your help,
Spencer
 
faq333-3194

cahnge the LCID for the site

_____________________________________________________________________
onpnt2.gif
[sub]
Hakuna matata!!
[/sub]
 
that is a addition to tlhawkins for formatting. [smile]

_____________________________________________________________________
onpnt2.gif
[sub]
Hakuna matata!!
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top