Dash Between Dates: What It Means and How to Extract Date Ranges From Text

What a dash between two dates means, which dash characters you will find in real text, and how to detect and normalize date ranges without breaking ISO dates.

A dash placed between two dates almost always marks a range: a start point, an end point, and the span in between. "1990–1995" reads as "from 1990 to 1995," and "March 3–5" reads as "March 3 through March 5." Reading one range by eye is easy. Handling ranges in bulk text is harder, because the same visual mark can be several different characters, and the ordinary hyphen also appears inside single dates such as 2024-03-01. This guide explains how to interpret a dash between dates and how to extract ranges reliably without changing text that should stay as it is.

What a dash between dates does in a text

In this position, a dash replaces the words "to" or "through." It joins two date expressions into one range. The input can be years (2019–2021), months (May–August), days within a month (June 10–14), weekdays (Mon–Fri), or full dates (Jan. 30, 2025–Feb. 2, 2025). The output a reader or a tool should get is a start date and an end date. Usually you also need to fill in any parts the writer left out, such as the shared month or year.

In everyday US writing, a dated range is normally read as inclusive: "Monday–Friday" includes both Monday and Friday. That is a convention, not a guarantee. Contracts, schedules and data specifications sometimes define their own rules. If the end boundary matters, look for an explicit word like "through" or "until," or for a definition in the document itself. If you find neither, record that the range's inclusivity is assumed.

Which character is the "dash"?

Text that looks identical on screen may contain different Unicode characters. Many style guides, including the Chicago Manual of Style, recommend the en dash for ranges. AP style uses a plain hyphen. Text typed on a keyboard often contains the hyphen-minus, and text pasted from word processors may contain whatever the autocorrect inserted. An extraction tool has to recognize all the plausible variants.

Character | Code point | Typical role
Hyphen-minus (-) | U+002D | Keyboard default; used for ranges in informal text and AP style, and as the separator inside ISO dates
Hyphen (‐) | U+2010 | Typographic hyphen in compound words
Non-breaking hyphen (‑) | U+2011 | Hyphen that prevents a line break
Figure dash (‒) | U+2012 | Digit-width dash, e.g. in phone numbers
En dash (–) | U+2013 | Preferred range mark in many style guides
Em dash (—) | U+2014 | Sentence break; sometimes misused for ranges
Horizontal bar (―) | U+2015 | Quotation dash in some typographic traditions
Minus sign (−) | U+2212 | Mathematical minus; occasionally appears in converted text

Watch for invisible characters as well. A range may be written with spaces around the dash, and those spaces might be regular spaces (U+0020), no-break spaces (U+00A0) or thin spaces (U+2009). They all render as a gap, but a pattern that only allows U+0020 will miss the others. Plain-text writers sometimes type a double hyphen (--) in place of an en dash, so check whether your corpus uses that form too.

Forms you will meet in real text

  • Full years: 2019–2021
  • Abbreviated end year: 2019–21, where the end year shares the start year's century
  • Century rollover: 1998–02, which means 1998 to 2002, not a backwards range
  • Shared month and year: March 3–5, 2025
  • Shared year only: March 30–April 2, 2025
  • Weekday or month names: Mon–Fri, May–August
  • Open-ended range: 1950–, often used for a living person or an ongoing publication
  • Spaced dash: 2019 – 2021, possibly with no-break or thin spaces

When a dash between digits is not a range

The most common false positive is a single numeric date. In 2024-03-01 (ISO 8601 format), the hyphens separate year, month and day, so this is one date and not a range. The ISO 8601 standard writes intervals with a solidus (slash) instead, as in 2024-03-01/2024-03-05, partly so that the interval separator does not clash with the hyphens inside each date. US-style numeric dates such as 03-04-2025 are also single dates. Other look-alikes include phone numbers, part and serial numbers, score lines, and negative numbers written with a minus sign. An em dash right after a year may simply be sentence punctuation, as in "In 2020—the year everything changed—…".

Step by step: extracting and normalizing date ranges

  • 1. Inventory the dash characters actually present in your text before writing any pattern, so you know which variants and spacing characters to support.
  • 2. Define a character class that covers every dash variant you intend to treat as a range separator, and allow optional whitespace of any kind around it.
  • 3. Anchor the pattern on date-like tokens on both sides (years, month names, day numbers) so a bare dash between arbitrary numbers is not matched.
  • 4. Exclude single dates by refusing a match when the right-hand side continues with another dash and digit, as in 2024-03-01.
  • 5. Resolve omitted parts: expand abbreviated years, carry the month and year across from the other side, and handle century rollover.
  • 6. Normalize only inside the matched span. If you want en dashes everywhere, replace the separator within each confirmed range and leave every other hyphen untouched.
  • 7. Verify the result, as described in the next section.

The following Python snippet is an illustrative example for year ranges only. It has not been tested against your data, so treat it as a starting point rather than verified output. In Python 3, \s in a pattern applied to a str also matches Unicode whitespace such as no-break and thin spaces.

import re

# Dash variants accepted as a range separator
DASH = r"[\u002D\u2010\u2011\u2012\u2013\u2014\u2015\u2212]"

# Four-digit start year, dash, two- or four-digit end year.
# The lookahead rejects ISO dates like 2024-03-01.
YEAR_RANGE = re.compile(
    rf"\b(\d{{4}})\s*{DASH}\s*(\d{{4}}|\d{{2}})\b(?!{DASH}\d)"
)

def expand_end(start, end):
    if len(end) == 4:
        return int(end)
    century = int(start) // 100 * 100
    candidate = century + int(end)
    # 1998-02 means 2002, not 1902
    return candidate if candidate >= int(start) else candidate + 100

def find_year_ranges(text):
    for m in YEAR_RANGE.finditer(text):
        start, end = m.group(1), m.group(2)
        yield m.span(), int(start), expand_end(start, end)

Example input (illustrative): "Served 2019–21; filed 2024-03-01; active 1998 - 02." Applied to this sentence, the pattern is intended to report 2019 to 2021 and 1998 to 2002, and to skip the ISO date. Run it yourself to confirm before you rely on it. Full-date ranges with month names need their own patterns, built with the same separator class.

Verifying that nothing else changed

  • Count matches per pattern, then read a sample of them by hand, including the ones near punctuation.
  • Run a diff between the original and normalized text and confirm that only separator characters inside detected ranges differ.
  • Keep a small test file of edge cases: ISO dates, numeric US dates, phone numbers, century rollovers, open-ended ranges and spaced dashes with no-break spaces.
  • Check that every extracted range has a start that is not after its end. A reversed result usually signals a misread abbreviation or a false positive.
  • Log anything ambiguous, such as an unclear end boundary or a dash that could be punctuation, for human review instead of guessing.

Known gaps

No source-specific evidence was supplied for this guide, so it relies on general Unicode and typographic conventions rather than on documented behavior of any particular tool. Whether a range is inclusive, how a given style guide treats spacing, and how a specific library handles Unicode whitespace should all be confirmed against the governing document or the tool's own documentation.