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 IsLeapYear1(iYear As Integer) As Boolean
If (iYear Mod 400) = 0 Then
IsLeapYear1 = True
ElseIf (iYear Mod 100) = 0 Then
IsLeapYear1 = False
ElseIf (iYear Mod 4) = 0 Then
IsLeapYear1 = True
Else
IsLeapYear1 = False
End If
End Function
Function IsLeapYear2(iYear As Integer) As Boolean
Select Case True
Case ((iYear Mod 400) = 0): IsLeapYear2 = True
Case ((iYear Mod 100) = 0): IsLeapYear2 = False
Case ((iYear Mod 4) = 0): IsLeapYear2 = True
Case Else: IsLeapYear2 = False
End Select
End Function
Function IsLeapYear3(iYear As Integer) As Boolean
Dim dDate As Date
dDate = "1/March/" & iYear
dDate = DateAdd("d", -1, dDate)
If Day(dDate) = 29 Then
IsLeapYear3 = True
Else
IsLeapYear3 = False
End If
End Function
Function IsLeapYear4(iYear As Integer) As Boolean
IsLeapYear4 = (((iYear Mod 400) = 0) Or ((iYear Mod 100) <> 0)) And ((iYear Mod 4) = 0)
End Function
Function IsLeapYear5(iYear As Integer) As Boolean
IsLeapYear5 = (Day(DateAdd("d", -1, "1/March/" & iYear)) = 29)
End Function
Function IsLeapYear6(iYear As Integer) As Boolean
[color red][b]If (iYear Mod 4000) = 0 Then
IsLeapYear6 = False
Else[/b][/color]If (iYear Mod 400) = 0 Then
IsLeapYear6 = True
ElseIf (iYear Mod 100) = 0 Then
IsLeapYear6 = False
ElseIf (iYear Mod 4) = 0 Then
IsLeapYear6 = True
Else
IsLeapYear6 = False
End If
End Function
Function IsLeapYear7(iYear As Integer) As Boolean
Select Case True
[color red][b]Case ((iYear Mod 4000) = 0): IsLeapYear7 = False[/b][/color]
Case ((iYear Mod 400) = 0): IsLeapYear7 = True
Case ((iYear Mod 100) = 0): IsLeapYear7 = False
Case ((iYear Mod 4) = 0): IsLeapYear7 = True
Case Else: IsLeapYear7 = False
End Select
End Function
Function IsLeapYear8(iYear As Integer) As Boolean
IsLeapYear8 = [color red][b]((iYear Mod 4000) <> 0) And[/b][/color] (((iYear Mod 400) = 0) Or ((iYear Mod 100) <> 0)) And ((iYear Mod 4) = 0)
End Function