取得某年某月的最后一天,代码如下:
<script language="javascript"> function GetLastDay(year,month,1) { var date = new Date(year,month,1); var lastday=new Date(date.getTime()-1000*60*60*24).getDate(); return lastday; } </script>
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.