<script language="JavaScript" type="text/JavaScript">
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
myhour = mydate.getHours();
myminu = mydate.getMinutes();
mysec = mydate.getSeconds();
year=(myyear > 200) ? myyear : 1900 + myyear;
if(myweekday == 0)
weekday=" 星期日 ";
else if(myweekday == 1)
weekday=" 星期一 ";
else if(myweekday == 2)
weekday=" 星期二 ";
else if(myweekday == 3)
weekday=" 星期三 ";
else if(myweekday == 4)
weekday=" 星期四 ";
else if(myweekday == 5)
weekday=" 星期五 ";
else if(myweekday == 6)
weekday=" 星期六 ";
document.write(year+"年"+mymonth+"月"+myday+"日 "+weekday+myhour+":"+myminu+":"+mysec+"<br />");
</script>
本文来源:https://www.wddqw.com/doc/bd85502d453610661ed9f4ae.html
正在阅读:
时间日期代码01-01
财务人员个人工作总结(简洁)01-01
服务礼仪的重要性01-01
铅笔橡皮和卷笔刀的童话故事01-01
西北农林科技大学北校区平面图01-01
男孩子跟陌生女孩子怎么聊天01-01
古老的寓言故事精选01-01
幼儿园小班美术折纸教案 狐狸头01-01