怎样得到某年某月的最大天数

来源:互联网 发布:卷皮 源码 华丽手机版 编辑:程序博客网 时间:2024/05/22 04:53

<%
dim dayNum,theYear,theMonth
theYear=2005
theMonth=2
'根据前面年、和月来计算该月有几天
dayNum=Day(DateAdd("d",-1,DateAdd("m",1,Cdate(theYear & "-" & theMonth & "-1"))))
response.write dayNum
%>

 
原创粉丝点击