Hi,<br>How can I know the Date & time of the client side?<br>ie, the server is located in the states and the client is in europe, how can I know the date & Time in europe?<br>Thanks<br>Eyal
Dear eyal,<br><br>My first thought is that you would have to write a client side script to send it to your server code. I don't think it is included in any of the HTTP headers.<br><br><body><br><%<br> var clientTime = new String(Request("cliTime");<br> if ( clientTime.indexOf('undefined') == 0){<br>%><br><script language=javascript><br><!--<br>var dt = new Date();<br>window.location = "mypage.asp?cliTime=" + dt.getHours() + ":" + dt.getMinutes();<br>//--><br></script><br><br><%<br> }<br>%><br>Client Time: <%=clientTime%><br><br></body><br><br>Good luck<br>-pete<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.