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.

Standards for Representing Dates

Advantages of representing dates with four-digit years Go
Standards for representing dates with four-digit years: mm/dd/yyyy and yyyy-mm-dd (ISO 8601) Go
Disadvantages of representing dates with four-digit years Go
Related documents
Changing Your Operating System's Default Date Format To Use Four-Digit Years Go
Why You Should Enter Dates With Four-Digit Years Whenever Possible Go


Advantages of representing dates with four-digit years

Data which is stored or exchanged and which contains century-ambiguous two-digit years, such as "05/13/29", can present Y2K problems. Different computer programs (and even humans) might variously interpret such dates as falling either in the 20th century, as May 13, 1929 or in the 21st century, as May 13, 2029. This could potentially lead to inaccurate data and faulty results.

Under most circumstances, when specifying date formats in your data files or custom scripts or programs, or when entering dates into spreadsheets, databases, and the like, you should thus use dates with unambiguous four-digit years.

Standards for representing dates with four-digit years: mm/dd/yyyy and yyyy-mm-dd (ISO 8601)

You might consider adopting one of two methods for representing dates with four-digit years as a standard within your UC Berkeley campus department. (In the examples below, "mm" is used to represent the month, "dd" the day, and "yyyy" the year, including the century):

Disadvantages of representing dates with four-digit years

Unfortunately, at least a few application programs have programming flaws which do not allow them to properly handle dates in one or both of these four-digit-year formats. (We expect that a somewhat greater number of programs may have difficulties handling dates in the ISO 8601 "yyyy-mm-dd" format, as this format places the year in a different position within the date than is traditional in the USA, and also uses a different separator character.)

For this reason, we recommend that you check with the vendors, developers, or maintainers of your key application programs, and/or perform tests on your own with non-critical sample data files, before switching to a different method for representing dates.

In addition, even if your own programs can accept and manipulate dates in one or both of these four-digit year formats, some other programs with which your programs may be sharing data might not. As a result, we recommend that you also check with your data interchange partners to make sure that switching date formats won't cause any problems.




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.