script取一个月的最后一天
//=================取一个月的最后一天
function getLastDay(year,nextMonth){
var theDay = new Date(year,nextMonth,0)
theDay = theDay-1
lastDay = theDay.getFullYear()+"-"+(theDay.getMonth()+1)+"-"+theDay.getDate()
Alert(lastDay);
return lastDay
}[@more@]
网页名称:script取一个月的最后一天
网址分享:http://cqwzjz.cn/article/pehdpj.html
function getLastDay(year,nextMonth){
var theDay = new Date(year,nextMonth,0)
theDay = theDay-1
lastDay = theDay.getFullYear()+"-"+(theDay.getMonth()+1)+"-"+theDay.getDate()
Alert(lastDay);
return lastDay
}[@more@]
网页名称:script取一个月的最后一天
网址分享:http://cqwzjz.cn/article/pehdpj.html