in reply to Re: How to subtract date by 1 day
in thread How to subtract date by 1 day
Actually, there is a flaw in your Leap_year logic. (This is why people who write date routines pull out their hair).
A leap year is a year that is divisible by 4, but not by 100, unless it's divisible by 400. Not that your solution is likely to encouter the bug anytime soon. But the year 2100 is NOT a ly.
|
|---|