以下は JS コードです::
@ 著者 YHC:
function getCurrentMonthLastDay(){
var current=new Date();
var currentMonth=current.getMonth();
var nextMonth= currentMonth;
var nextMonthDayOne =new Date(current.getFull Year(),nextMonth,1);
varminusDate=1000*60*60*24;
return new Date(nextMonthDayOne.getTime()-minusDate);
}
function getCurrentMonthLastDay(){
var current =new Date();
var currentMonth=current.getMonth();
var nextMonth= currentMonth;
var nextMonthDayOne =new Date(current.getFull Year(),nextMonth,1 );
var minusDate=1000*60*60*24;
return new Date(nextMonthDayOne.getTime()-minusDate);
}
function getCurrentMonthFirstDay(){
var current= new Date();
current.setDate(1);
return current;
}
関数 getCurrentMonthFirstDay(){
var current=new Date();
(1);
現在の値を返す;
}