XL2000: Two-Digit Year Displayed When You Type a Four-Digit Year

ID: Q215308


The information in this article applies to:
  • Microsoft Excel 2000

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

When you type a date that includes a four-digit year, Microsoft Excel only displays two digits for the year. This behavior occurs even if the Short date style setting (on the Date tab under Regional Settings in Control Panel) is set to display four-digit years.


CAUSE

This behavior may occur when the cell in which you type the date is formatted with the General number format.


RESOLUTION

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

To resolve this problem, add the EnableFourDigitYearDisplay entry to the Windows registry. To do this, follow these steps:

  1. On the Start menu, click Run. In the Open box, type regedit. Click OK.


  2. In the left pane, click the plus signs (+) to the left of the following items (in order):


  3. HKEY_CURRENT_USER
    Software
    Microsoft
    Office
    9.0
    Excel
  4. In the left pane, click the Options folder.


  5. On the Edit menu, point to New and then click DWORD Value.


  6. Type EnableFourDigitYearDisplay, and then press ENTER.


  7. Double-click the EnableFourDigitYearDisplay icon.


  8. In the Value data box, type 1, and then click OK.


This change takes effect the next time that you start Excel.

NOTE: After you enable the EnableFourDigitYearDisplay registry entry, Excel always displays four digits when you type a date that includes a four-digit year. This may override your Short date style setting under Regional Settings in Control Panel.

Additional query words: XL2000 y2k

Keywords : kb2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: August 12, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.