<SCRIPT language=JavaScript>
d = new Date();
document.write((d.getYear())+"年"+(d.getMonth()+1)+"月"+d.getDate()+ "日");
</SCRIPT>
<SCRIPT language=JavaScript>
d = new Date();
switch (d.getDay()) {
case 0:
strweek="日";
break;
case 1:
strweek="一";
break;
case 2:
strweek="二";
break;
case 3:
strweek="三";
break;
case 4:
strweek="四";
break;
case 5:
strweek="五";
break;
case 6:
strweek="六";
break;
}
document.write("星期"+ strweek);
</SCRIPT>
转载自原文链接, 如需删除请联系管理员。
原文链接:2012年1月5日星期四,转载请注明来源!