※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。



myModify = document.lastModified;

myD = new Date(myModify);
myYear = myD.getYear();
myYear4 = (myYear < 2000) ? myYear+1900 : myYear;
myMonth = myD.getMonth() + 1;
myDate = myD.getDate();
myDay = myD.getDay();

monthdays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);

if(((myYear%4==0)&&(myYear%100==0))||(myYear%400==0)){
	monthdays[1]=29;
}

myStr = myMonth+"月"+myDate+"日";

lastDay = myDay - 7

if(lastDay>0){
	myStr2 = myMonth+"月"+lastDay+"日";
}else{
	myMonth = myMonth-1;
	x = monthdays[myMonth];
	lastDay = lastDay + x;
	myStr2 = myMonth+"月"+lastDay+"日";
}

myStr3 = myStr2 + " ~ " + myStr;
document.write( myStr3 );