读书人

VBScript计算一个月有几多天

发布时间: 2012-09-20 09:36:50 作者: rapoo

VBScript计算一个月有多少天

Function DaysOfMonth(aYear,aMonth)    For i = 31 To 28 step -1        If   IsDate(CStr(aYear)&"- "&CStr(aMonth)&"- "&i)   Then             DaysOfMonth   =   i             Exit   Function         End   If     Next End   Function 
?

读书人网 >vbScript

热点推荐