function Days()
{
  this[0] = "S"; this[1] = "M"; this[2] = "T"; this[3] = "W";
  this[4] = "T"; this[5] = "F"; this[6] = "S";
}

var now = new Date();
var yr  = now.getYear();
var mn  = now.getMonth() + 1;
var dt  = now.getDate();
var dy  = now.getDay();

var fyr = (yr < 1900) ? 1900 + yr : yr;

var dys = new Days();
var dyj = dys[dy];

document.write(fyr + "/" + mn + "/" + dt);