Click to See Complete Forum and Search --> : Date and Time Display


Keone
04-29-2003, 08:19 AM
I'm looking for script that I can have on various pages that would show the person viewing the page the current date and time for whichever international city the page is referring to. Does anyone have an idea? Thanks.

khalidali63
04-29-2003, 09:19 AM
yes you should be able to do that..the only roblem I see is you will have to calculate time according to the users city and zone.

you can get time and date

var date = new Date();

EIDIT:

if you search this forum you will find some solution for it,most likely 1 by Dave,I think is related to your question.

requestcode
04-29-2003, 09:23 AM
Here is a link to a script that might be useful:
http://www.javascriptkit.com/script/cutindex1.shtml

Keone
04-29-2003, 09:55 PM
Thanks everyone. Dave I especially like the simplicity of your presentation. I tried to view the source and for some reason could not. Is there a location where this script is viewable? Thanks.

Keone

AdamBrill
04-29-2003, 10:41 PM
Here is the source code for Dave's example...