var weeks = new Array('日','月','火','水','木','金','土'); 

 var now = new Date(); 

 var year = now.getYear(); // 年 
 var month = now.getMonth() + 1; // 月 
 var day = now.getDate(); // 日 
 var week = weeks[ now.getDay() ]; // 曜日 
 var hour = now.getHours(); // 時 
 var min = now.getMinutes(); // 分 
 var sec = now.getSeconds(); // 秒 

 if(year < 2000) { year += 1900; } 

// 数値が1桁の場合、頭に0を付けて2桁で表示する指定 
 if(month < 10) { month = month; } 
 if(day < 10) { day = day; }

// 表示開始
 document.write(month + '月' + day + '日（' + week + '）'); 
// 表示終了  

