Date object
-
- var T = new Date();.var day = T.toLocaleString();.//call Showdate in 2 seconds after first load.ID=window.setTimeout("Update();",1000);.function Update() {. var T = new Date();. var day = T.toLocaleString();. document.form1.input1.value=day;. // set another timeout. ID=window.setTimeout("Update();",1000);. }.
- <form name="form1">.<input type="text" Name="input1" Size="17">.</form>