[Html]
<! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Script type = "text/javascript">
Function bodyLoad (){
Var dateTime = new Date ();
Var hh = dateTime. getHours ();
If (hh <10) hh = '0' + hh;
Var mm = dateTime. getMinutes ();
If (mm <10) mm = '0' + mm;
Var ss = dateTime. getSeconds ();
If (ss <10) ss = '0' + ss;
Var yy = dateTime. getFullYear ();
Var MM = dateTime. getMonth () + 1; // because this method returns 0 on January 1, January, 1 is added.
Var dd = dateTime. getDate ();
Var week = dateTime. getDay ();
Var days = ["day", "one", "two", "three", "four", "five", "Six",]
Document. getElementById ("date"). value = yy + "year" + MM + "month" + dd + "day" + "week" + days [week];
Document. getElementById ("time"). value = hh + ":" + mm + ":" + ss;
SetTimeout (bodyLoad, 1000 );
}
</Script>
</Head>
<Body onload = "bodyLoad ()">
<Input type = "text" id = "date" style = "border: 0 none;"/> <input type = "text" id = "time" style = "border: 0 none; "/>
</Body>
</Html>