Lotus 1-2-3 Files and the 1904 Date SystemLast reviewed: November 2, 1994Article ID: Q58930 |
The information in this article applies to:
SUMMARYWhen (from Microsoft Excel for Windows or OS/2 or from Lotus 1-2-3) you open a previously saved Microsoft Excel file and find that all date entries are four years and one day less than they should be, the problem could have one of two causes:
MORE INFORMATIONThe problem most likely occurs when the file originated from a version of Microsoft Excel for the Macintosh prior to Version 2.20. All versions of Microsoft Excel use a serial time format and store dates as a single number. Microsoft Excel for the Macintosh (prior to Version 2.20) begins counting dates from the number 0, which corresponds to January 1, 1904. Microsoft Excel for Windows and Microsoft Excel for OS/2 begin counting dates from the number 1, which corresponds to January 1, 1900 --- hence the four-year-and-one-day difference between the Macintosh and IBM-compatible versions. Microsoft Excel for Windows and Microsoft Excel for OS/2 have an option to correct the inconsistency between the programs when importing Macintosh files to the PC environment: the 1904 Date System option under Options Calculation. If this option is not selected when a file from Macintosh Excel is imported, then all dates will be four years and one day behind the dates entered when the file was used with Macintosh Excel. When the option is selected, Microsoft Excel for Windows and OS/2 add four years and one day from the standard translation it uses from the underlying serial value. This option does not change the underlying serial value, however, and when Excel saves the file in either the WK1 or the WKS format, it saves the file's dates based on the standard translations of the serial values, not the 1904 Date System translations. Consequently, when the file is opened in Lotus 1-2-3, or reopened in Excel for Windows or OS/2, the dates are four years and one day behind the values typed into Excel. Although resetting the 1904 Date System option will correct the problem in Excel, Lotus 1-2-3 has no such feature. For Lotus 1-2-3, the only way to correct the discrepancy (working in Excel before exporting to Lotus) is to add 1462 to the underlying serial value in each cell and disable the 1904 Date System option. (The number 1462 is equal to three years of 365 days each, plus one leap year of 366 days, plus an extra day to account for the fact that Macintosh Excel starts counting days at 0, whereas Excel for Windows starts counting at 1.) For a large sequence of dates, this recalculation can be accomplished quickly by using the following method:
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |