The Straight Answer: Drop the First Two Digits
If you need to abbreviate a year, take 2024 and make it 24. Take 1998 and make it 98. That is it. Four-digit years compress to two digits by removing the century portion. The resulting number carries the same temporal meaning in virtually every context where abbreviation matters. The actual workflow depends entirely on what tool you are working inside. In Excel, the format code is "yy" — lowercase y repeated twice. A cell containing the date 15/03/2024 displays as 24 when that format is applied. In Google Sheets it is identical. SQL handles it through string functions or date formatting routines specific to each dialect. If you are writing code, most languages provide a built-in date formatter where the pattern yy produces a two-digit year. Java's SimpleDateFormat, Python's strftime, C#'s ToString("yy") — they all do the same thing. I dealt with a migration last year where an older legacy system stored dates as two-digit integers without any context about the century. We were pulling records from 1987 through 2023 and feeding them into a modern pipeline. The problem wasn't abbreviating years — it was that the source data had already been abbreviated and we couldn't reliably tell whether 91 meant 1991 or 2091. There was no metadata, no documentation, nothing. What we ended up doing was applying a business rule: any value under 30 was treated as 20xx, and anything 30 or above was treated as 19xx. That mapped correctly for every record we checked against external sources. It is a heuristic, not a guarantee, but it worked for our dataset.
When Two Digits Work and When They Don't
Two-digit year abbreviations are standard in finance, government forms, academic citations, and internal business systems. ISO 8601 actually permits the two-digit form, though it requires the century to be specified explicitly if you want to be fully unambiguous. In casual writing, news media, and everyday communication the short form is everywhere and nobody bats an eye. The pitfall people hit is the century ambiguity problem. You see 04 on a document and you assume 2004. That assumption is usually correct, but it is not guaranteed. Systems that store only two digits for year values lose information permanently. You cannot reverse the abbreviation once it has been saved. If your organization needs to archive data, keep four digits from the start. Converting 2024 to 24 and then trying to reconstruct the full date later is a mistake that shows up in audits and broken reports. Another thing worth noting: some legacy software treats two-digit years using a rolling window rather than a fixed cutoff. SAP, for instance, uses a configurable boundary that typically sits at 50 or 55. Values below the boundary map to 20xx, values at or above map to 19xx. This is configurable but it is not always obvious from the interface. If you are integrating with an ERP system and your dates look wrong, check the year interpretation settings first before assuming your data is corrupt.
Technical Implementation Details
For spreadsheet users, apply the custom format code yy to a date column. The underlying value remains a full date. Only the display changes. This is important because formulas still operate on the complete date, not the shortened text. Sorting, filtering, and calculations all behave normally. In programming contexts, the pattern varies slightly by language but the concept is consistent. Use a date formatting function rather than string manipulation. Taking the substring "24" from "2024" works until you have to deal with dates outside the 2000s, or null values, or localization issues. A proper date formatter handles all of that. It also respects locale conventions, which matters if your output goes to an international audience. Regular expressions can extract two-digit year portions from raw text, but that is a different problem entirely. If you are parsing unstructured documents and need to find year abbreviations within prose, a pattern like \b\d{2}\b will grab every two-digit number, most of which are not years. You need additional context checks — surrounding words, position in the document, known date formats — to filter out false matches. That is why dedicated parsers exist for document processing.
Get the Full Details

Abbreviation Standards Across Styles
Different style guides handle years differently. The Chicago Manual of Style does not abbreviate years in running text. Numbers like 2024 stay four digits. AP Style follows the same convention for general prose. Abbreviation typically appears in tables, footnotes, forms, and technical documentation where space is constrained. If you are writing for publication, check the specific style guide before shortening anything. Academic referencing styles like APA and MLA keep full four-digit years in citations. The abbreviation appears only in certain visual contexts like graph axes or compact tables where the style guide explicitly allows it. You will sometimes see yy used in slide presentations and dashboard labels. That is acceptable there because the surrounding context makes the century obvious.
Bottom Line
Abbreviating a year means reducing a four-digit value to its last two digits. The mechanics are trivial. The real consideration is whether you should do it at all, and whether the context makes the century clear without explicit notation. When in doubt, keep the full year. The cost of four extra characters is negligible compared to the cost of fixing ambiguous date fields downstream.