Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
Function numDaysMonth(intMonth,intYear)
intMonth = cint(intMonth)
If intMonth > 0 and intMonth < 13 Then
Select case intMonth
Case 4,6,9,11
intMaxDays = 30
Case 2
If instr(1,(intYear / 4),".") > 0 Then
intMaxDays = 28
Else
intMaxDays = 29
End If
Case else
intMaxDays = 31
End Select
Else
intMaxDays = -1
End If
numDaysMonth = intMaxDays
End Function
daysInMonth = numDaysMonth(1,2005)
If daysInMonth = -1 Then
Response.Write "Invalid month"
Else
Response.Write daysInMonth
End If
%>