Hi,
I would like to display the current time continuously but in a different time zone?
The following code will display the current time continuously.
Can I update to get the time in a 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">
// a startup script to put everything in motion
window.setTimeout("ShowTime()", 1000);
</script>
Please help
Thank you
Joe