Click to See Complete Forum and Search --> : showing server time


Webskater
03-04-2004, 09:22 AM
I want to display a ticking clock but showing the server time, not the time on the computer the browser is on.
Can anyone tell me how to pass the server time to a javascript function please.
Thanks for any help.

TheBearMay
03-04-2004, 09:31 AM
var serverDate = <!--#echo var="DATE_LOCAL" -->; should work.

fredmv
03-04-2004, 05:25 PM
Originally posted by TheBearMay
var serverDate = '<!--#echo var="DATE_LOCAL" -->';Otherwise, that would cause syntax errors. Moreover, for a complete solution to your problem, check this out (http://www.webxpertz.net/faqs/jsfaq/jsserver.php#poll).

TheBearMay
03-05-2004, 07:09 AM
That's what I get for cutting and pasting....Thanks for the correction.