Funny thing leap years, the normal rule is that as long as the year is exactly divisible by 4 then it's a leap year; however when it comes to century years another rule has to be applied... the year must also be divisible by 40; don't remember exactly why but it has something to do with a year not really being 365 days and so every couple of years we have to catch up.
Thanks to everybody for the valuable information you provided here. I am still confused that when I have date information in Microsoft Excel and I convert every column as a text, why does Excel give serial # 60 to 2/29/1900? As you know that Excel starts assigning serial # to each date starting from 1/1/1900 to 12/31/2999. Based on this inofrmation I wrote a function that converts that serial # back to date just by adding that (number - 1) in 1/1/1900. This function works fine till 1/28/1900 but after that date it gives one future date of the actual date. That's why I was wondering why Excel considers 1900 a leap year and VFP does not? Any comments on this please
The story I heard is that when Lotus developed 1-2-3, they did not realize that century years must be divisible by 400 to be leap years.
Lotus 1-2-3 became the spreadsheet standard. In order to be compatible with Lotus, all the rival spearsheets had to conform to this error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.