The
Code is as follows:
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" >
<meta http-equiv= "Content-type" content= "text/html; charset=utf-8"/>
<script t Ype= "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;//Since January This method returns 0, so add 1
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>
<body onLoad= "Bodyload ()" >
<input type= "text" id= "date" style= "border:0 none;"/><input type= "text" id= "Time" Style= "border:0 none;"/>
</body>