﻿var D = new Date();
var yy = D.getYear();
var mm = D.getMonth() + 1;
var dd = D.getDate();
var ww = D.getDay();
if (ww == 0) ww = "<font color=RED>星期日</font>";
if (ww == 1) ww = "星期一";
if (ww == 2) ww = "星期二";
if (ww == 3) ww = "星期三";
if (ww == 4) ww = "星期四";
if (ww == 5) ww = "星期五";
if (ww == 6) ww = "<font color=RED>星期六</font>";
if (yy < 100) yy = "19" + yy;
bsWeek = ww + "&nbsp;";
bsDate = yy + "年" + mm + "月";
bsDate2 = dd + "日&nbsp;";
document.write("&nbsp;&nbsp;" + bsDate + bsDate2 + "&nbsp;" + bsWeek);
