The Y2K bug existed because many programs stored years as two digits, so 2000 could look like 1900.

2000

Companies and governments spent years and enormous sums updating software before midnight on December 31, 1999. When the date rolled over, only minor glitches were reported, which people argue about to this day: was the fix that good, or was the threat overblown?