Click to See Complete Forum and Search --> : When is it a Leap Year?


Ravi Kiran
May 20th, 1999, 02:36 AM
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

Lothar Haensler
May 20th, 1999, 02:40 AM
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).

Ravi Kiran
May 20th, 1999, 03:46 AM
Thanks a lot. That was Fast!..