javascript - How to display the current time continously in a different time zone? -
i display current time continuously in different time zone?
the following code display current time continuously.
can update time in different time zone.?
<script type="text/javascript"> function showtime() { var dt = new date(); document.getelementbyid("<%= textbox1.clientid %>").value = dt.tolocaletimestring(); window.settimeout("showtime()", 1000); } </script> <asp:textbox id="textbox1" runat="server" cssclass="time"></asp:textbox> <script type="text/javascript"> // startup script put in motion window.settimeout("showtime()", 1000); </script>
please help
thank you
joe
this article talks how calculate time in timezone:
https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6016329.html
Comments
Post a Comment