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 GetDaysInMonth(dteInput As Date) As Integer
On Error GoTo ErrHandler
Select Case Month(dteInput)
Case 2
GetDaysInMonth = 28
Dim iYear As Integer
iYear = Year(dteInput)
If iYear Mod 4 = 0 Then
If iYear Mod 100 = 0 Then
If iYear Mod 400 = 0 Then
GetDaysInMonth = 29
End If
Else
GetDaysInMonth = 29
End If
End If
Case 4, 6, 9, 11
GetDaysInMonth = 30
Case Else
GetDaysInMonth = 31
End Select
Exit Function