var d=new Date();
var m=d.getMonth()+1;
var x = d.getDate(d.setMonth(m,0));
var y1=d.getDay(d.setMonth(m,0));
alert(x);
alert(y1);
var d = new Date();
var weekday = new Array(7);
weekday[0]= "Sunday";
weekday[1] = "Monday";
weekday[2] = "Tuesday";
weekday[3] = "Wednesday";
weekday[4] = "Thursday";
weekday[5] = "Friday";
weekday[6] = "Saturday";
var n = weekday[d.getDay()];
ไม่มีความคิดเห็น:
แสดงความคิดเห็น