高县网站建设设计

将想法与焦点和您一起共享

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取一个月的最后一天
链接URL:http://scgaoxian.com/article/pehdpj.html

其他资讯