Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: displaying the date according to the server not as clients date


Message #1 by omkarj@h... on Fri, 23 Mar 2001 07:12:37
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.
> 
> 
> 
> 

  Return to Index