javascript thread: displaying the date according to the server not as clients date
I think there was a minor over sight on Laxmikant part. It will be within
quote:
todayDate = "<%=ToDay%>"
else it will give the result of division. You also need to make sure that
the value is available to the client side javascript at the time the page
is being formed..
For example if your code looks like this
<HEAD>
<Script language="JavaScript">
todayDate="<%=ToDay%>"
</Script>
</HEAD>
<Body>
<%
ToDay=Date()
%>
</Body>
it will not work for you
You could also do on client side as
<Script Language="JavaScript">
todayDate="<%=Date()%>"
</Script>
> hi,
>
> i have created a form on which one fileld shows the date.
> i have used javascript date() function.
>
> but the problem is it shows the clients date.
>
> i want to show the servers date.(ie web servers date)
>
> help me.
>
>
>
>