The information in this article applies to:
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. SUMMARYThis article describes how Microsoft Word 2000 parses dates. MORE INFORMATIONGeneral InformationWord has the ability to parse simple text as a date. To parse text as a date, Word must know the order of day, month, and year. To determine this order, Word first looks at the short date format setting in the Regional Settings (on Control Panel). The exception to this is if Word is parsing the date by using the Sort command on the Table menu.Word checks to see whether each element of the date falls within the possible values for day, month, and year. If one or more of the elements does not fall within the possible range of values for day, month, and year, Word looks at the installed language for date orderings and tries these next. The following table shows the date orderings for the languages supported by Word. If the installed language is not shown here, Word uses the default date ordering.
You can check the Windows registry to determine the installed language. This information is stored in the following registry keys:
HKEY_Current_User\Software\Microsoft\Office\9.0\Common\LanguageResources\InstallLanguage Date Parsing During a SortWhen parsing dates during a sort, Word uses the Sorting Language setting in the Sort Options dialog box. The default language setting is determined by the language of the text at the beginning of the current selection.Word uses the same date orderings described in the previous table. But, when using the Sort feature, Word does not look at the settings in the Regional Settings Control Panel. If Word encounters an invalid date during a sort, it places the invalid dates at the end of the list if you are sorting in descending order or at the beginning of the list if you are sorting in ascending order. Sliding Date WindowWord uses a sliding 100-year window to determine the century when interpreting a two-digit year. By default, this window is set to 1930-2029. This means that two-digit years 00-29 are interpreted as 2000-2029, and two-digit years 30-99 are interpreted as 1930-1999.Changing the Sliding DateWARNING: 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). In Windows 98 and Windows 2000, you can change this sliding window on the Date tab in the Regional Settings Control Panel. This setting is reflected in the Windows registry under the following registry key: HKEY_Current_User\Control Panel\International\Calendars\TwoDigitYearMax\1This is a system-wide setting. Changing it affects all applications that call this API. Additional query words: double digit 2 two parse interpret
Keywords : kbdta wd2000 |
Last Reviewed: January 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |