Date In COBOL

Date In COBOL
cobol-memes, legacy-code-memes, dates-memes, null-values-memes, mainframe-memes | ProgrammerHumor.io

Nothing says "I found the bug" like blaming a null date for a 150-year-old on the payroll. The theory is that COBOL fills in a missing date with 1875, so 2025 minus 1875 gives you a very elderly user. It's the same energy as Unix epoch 1970 bugs, just with more mainframes and more confidence.

Reality check: COBOL doesn't have a built-in date type, so it has no magic default date. Whatever ends up in that field is whatever the developer put there. 1875 comes from the ISO 8601 reference example (the Metre Convention), and it has been recycled as a COBOL fact all over the internet. Calling it a COBOL feature is like blaming the hammer for the crooked shelf.

The real lesson is that a bad sentinel value like 0000-00-00, 1900, or 1970 will happily travel through 60 years of legacy code, and it will eventually show up in a headline.

More Like This