Hi,
Silly of me to ask this, but then...
What are *ALL* the conditions that i need to check for, if i were to decide it the given year is a leap year?
Ravi
Printable View
Hi,
Silly of me to ask this, but then...
What are *ALL* the conditions that i need to check for, if i were to decide it the given year is a leap year?
Ravi
public Function IsLeapYear(iYear as Integer) '-- Check for leap year
If (iYear Mod 4 = 0) And _
((iYear Mod 100 <> 0) Or (iYear Mod 400 = 0)) then
IsLeapYear = true
else
IsLeapYear = false
End If
End Function
I got that function from a mailing list (if I only knew which one).
Thanks a lot. That was Fast!..