australiaapi.blogg.se

Simply fortran serial number
Simply fortran serial number












simply fortran serial number

This allowed Excel to open Lotus 123 spreadsheets without date problems. Microsoft Excel however contains a bug with its date calculation: it considers 29-02-1900 as a valid date, but 1900 isn't a leap year! 29-02-1900 is not a valid date!Īccording to the stories, Microsoft decided to duplicate this date bug from Lotus 123, which was the dominating spreadsheet application at the time Excel was being written. The number of days since 1-1-1900 isn't that hard to calculate of course, once you know the leap years. 37477 actually translates to Aug 9, 2002, the date of writing this article.

simply fortran serial number

Now what is an Excel serial date number? 37477 is a serial date number and is the number of days since 1-1-1900. After some Googling, I learned that the Excel serial date is related to Julian date, and found a speedy algorithm to convert these numbers to DMY and vice versa.

#Simply fortran serial number serial number#

The serial number came from date field in a converted Paradox database and seemed to be exactly the same as the serial date in Microsoft Excel, hence the article name.

simply fortran serial number

For a little project of mine, I needed to convert a serial date number to day/month/year (DMY) and vice versa.














Simply fortran serial number