Hi Nath,
I believe this algorithm covers all cases, including the year 2000.
Divisible by 4? Yes. It could well be a leap year. But wait...
Divisible by 100? Yes. Oh, It's not a leap year.
But wait...
Divisible by 400? Yes! It
is a leap year after all!!!
Dick.
Oops... Marilyn's beat me to it (but at least we have the same story
).
[ April 02, 2008: Message edited by: Dick Summerfield ]