Click to See Complete Forum and Search --> : tick tock


David Harrison
04-01-2003, 03:29 AM
I know that i've asked this before but what is the exact website address that will display the current GMT time and date as it ticks along.
The reason for this being that I have a joke site that detects the date on someones computer and sends them to a different page each day, the problem is that they could simply change the date on their computer and see what jokes I have in store for them in the future.
Can anyone help me???

gil davis
04-01-2003, 07:10 AM
Is this what you mean?
http://www.worldtimeserver.com/


Why don't you investigate server-side code? Get the date/time from the server. I found something interesting at http://www.shearersoftware.com/software/web-tools/clock/

David Harrison
04-03-2003, 06:34 AM
I don't know ANY server side code but I use geocities, don't take this the wrong way but I don't want to know any ssc, for the moment I just want to learn js.
In my script I have got a section that aquires the date from the users PC, but I would rather have it aquire it from a website without learning or having to use any non-js code, if that is possible.
Would it be possible to capture the date from www.worldtimeserver.com/? I'm not interested in the time by the way just the date, month and the year in the form dd/mm/yy.

gil davis
04-03-2003, 07:08 AM
... for the moment I just want to learn js ... Would it be possible to capture the date from www.worldtimeserver.com/?Not with JavaScript.

David Harrison
04-04-2003, 02:28 AM
Ok then, so I can't do it with js so using as little non-js code as possible can anyone tell me how to capture the date from any website with the date and time on.
By the way, I need to be able to put this code in a separate .js file.

David Harrison
04-05-2003, 03:06 PM
Unforyunately, I don't know any prog. language that isn't js or html, so I can't use your asp script, but just out of interest wouldn't it just aquire the date from the users computer?

gil davis
04-05-2003, 06:43 PM
No, it's from the server, because it's server-side code - ASP is Active Server Page. That's what the <% ... %> tags do. However, your ISP must support ASP for it to work.