Thursday, April 19, 2007

Date Javascript

var date = new Date ();
date.setTime(1);
mdate = date.getFullYear() +"/" + (date.getMonth()+1) + "/" + date.getDate();

alert(mdate );

date.getDay // 0から始まる曜日を返す。0は日曜日、6が土曜日

No comments: