in reply to Re: subroutine for calculating day since 1900 needed
in thread subroutine for calculating day since 1900 needed
Oops, you need to subtract 693902 in the return line to make it return days since Jan 1 1900. In case it's of interest, the formula is valid back to 1752 for most parts of the world, and back to 1582 for most places outside of British control. Differences have to do with when people switched to the gregorian calendar. (Some still haven't.)