UC Berkeley Year 2000 Information Departmental and Personal Computers: Find and Resolve Y2K Problems
Home | Overview | Readiness Checklists | Computer Advisories | Software Tools | Specific Issues | Recharge Services | Peer Help | Search | Site Map | UCB Y2K Home

This page was last updated early during the year 2000 and some or all of its content may thus no longer be current or accurate.

Changing Your Operating System's Default Date Format To Use Four-Digit Years

How to change your OS's default date format Go
Advantages of changing your OS's default date format Go
Limitations of changing your OS's default date format Go
Disadvantages of changing your OS's default date format Go
Related documents
Why You Should Enter Dates With Four-Digit Years Whenever Possible Go
Standards for Representing Dates Go
DateWise, Ltd.'s Short Date Format Go
Microsoft Corporation's Windows 95, Windows 98 and Windows NT Year 2000 e-mail hoax Go



The format for displaying dates in most personal computer operating systems, such as Windows 95 and the Mac OS, is set "at the factory" to use two-digit years, such as "05/13/29".

Dates containing two-digit years are century-ambiguous. For instance, the date "05/13/29" could reasonably be interpreted either as "May 13, 1929" or "May 13, 2029". For this reason, it is desirable to change your operating system's default date format to use full, four-digit years. Here's why:

Many of your application programs, such as spreadsheet and database programs, are programmed to use the same format that your operating system uses when displaying dates. If your operating system is set to display dates with two-digit years, many application programs will also display dates with century-ambiguous two-digit years.

Merely having your programs display dates with two-digit years isn't in itself problematic, in a Y2K context or otherwise. However, this can lead to two types of subtle problems that you might first encounter when the year 2000 arrives or when your programs first begin using dates from the 21st century:

In addition, if your operating system's date format uses two-digit years, this can lead to a third type of subtle problem:

For this reason, it is often desirable to change your operating system's default short date format so that dates will be displayed with clear and unambiguous four-digit years, such as "05/13/2029" or "2029-05-13". We expect that most personal computer users affiliated with the UC Berkeley campus will benefit by changing their operating systems' default date format to use four-digit years.

However, doing so is not a panacea that will automatically correct a vast array of Y2K problems through a single click of the mouse. Rather, the effects of making this change are often quite modest. In addition, you might potentially encounter problems in the operation of a few application programs and with certain methods of sharing data after changing your OS to use a four-digit year format. Making this change could also lead to formatting problems - display or printing anomalies - in some data files. The limitations and disadvantages of making this change, as well as its advantages, are discussed below.

How to change your OS's default date format

The steps you can take to change your operating system's default date format to use four-digit years will depend on which OS you're using. These are presented in a number of the platform-specific Y2K Readiness Checklists Go elsewhere on this Web site, including:

On the Berkeley campus (and presumably elsewhere in the USA), you might typically change your OS's default date format from "mm/dd/yy" to "mm/dd/yyyy". (In this format, "mm" represents the month, "dd" the day, and "yyyy" the full, four-digit year, including the century.) An alternative might be to switch to the international and US standard for representing dates, "yyyy-mm-dd". See Standards for Representing Dates Go for a discussion of these two date formats.

Advantages of changing your OS's default date format

Some of the specific advantages of making this change include:

Causing your application programs to display dates with four-digit years

When you change your operating system's default date format to display four-digit years, some applications will also automatically use that format when displaying dates.

Why is this important? Depending on how your various application programs work, you might thus see such desirable effects as:

Allowing a few application programs to accept dates entered with four-digit years

In the case of a few application programs, if you wish to enter dates with full, four-digit years, you must change your operating system's default date format to use four-digit years. If you don't make this change, you will be limited to entering dates with only two-digit years.

This problem can manifest itself in several ways. For example, with certain programs, this might restrict you to entering only dates between 1900 through 1999, or only dates which fall within a different 100-year "window" defined by your program, such as from 1950 to 2049. With some other programs, it might constrain you to entering only only two year digits into date input fields, even if these fields are formatted to display dates with full, four-digit years.

Two examples:

Causing your operating system to display dates with four-digit years

After making this change, your operating system will begin displaying four-digit years in certain places it may have previously displayed two-digit years. For example, your OS may begin using four-digit years when listing the dates that your files were last modified. This may make it easier to identify files created in the year 2000 and beyond.

Limitations of changing your OS's default date format

After making this change, you may not see any change in behavior on the part of some application programs. This is because some of your programs may not use your operating system's default date format. And even some programs which do use this date format may not always use it in every situation where they handle dates.

In addition, changing your OS's default date format to use four-digit years, in itself, is only a partial solution to the problem of century-ambiguous dates. Regardless of the OS date format being used, you'll ideally need to follow the practice of entering dates with four-digit years Go into your documents. You'll also need to coordinate with those with whom you share data, so that both you and they agree to exchange dates with unambiguous four-digit years.

Disadvantages of changing your OS's default date format

The potential disadvantages of changing your OS's default date format to use four-digit years primarily concern a relatively small number of application programs, both custom and off-the-shelf, which may exhibit problematic behavior after you make this change. Some examples include:

Problems in the operations of some application programs
Problems affecting programs and scripts which handle dates as text strings

Some programming, scripting, or macro languages have built-in functions which can return dates as text strings. When your OS's default short date format is changed, these functions may return "mm/dd/yyyy" strings (or whatever new OS date format you've selected) rather than "mm/dd/yy" strings (or whatever format was in use before).

This may mean that programs or scripts that rely on the length of these text strings or the position of the year within these strings may fail in a variety of ways. We expect that this problem will be most likely to affect casual, user-written programs and scripts, although it could also affect at least a few custom-written applications.

Problems when sharing data

When sharing data via the Clipboard, text files, or other methods, with some application programs, dates in your "exported" data may now contain four-digit years. If the programs with which you are sharing this data are not prepared for this change, they may behave incorrectly when trying to import or process this data.

Problems in display and printing



Find something unclear? Missing? Incomplete? Inaccurate? Or even praiseworthy? Send us feedback about this Web site!

This site is provided by the campus Year 2000 Departmental Computers and Administrative Equipment Subcommittee at the University of California, Berkeley.

Copyright 1999 by the Regents of the University of California.
Disclaimer: The University assumes no liability if the information on this page is used for other than University purposes.