Canadian Date Format: How to Read, Extract and Normalize Dates in Canadian Text
Learn how to read Canadian dates such as YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY and French long forms, resolve ambiguous numeric dates, and extract them from text safely.
Canadian text does not use one single date format. The same document can contain an ISO-style date like 2026-10-31, a slash date that might be day-first or month-first, an English long form like October 31, 2026, and a French form like le 31 octobre 2026. This guide explains how to read each form, how a date extraction step should treat them, and how to check that nothing was misread along the way.
What Canadian date extraction does for your text
A date extraction step scans plain text, finds the substrings that represent calendar dates, and reports what each one means. Its input is ordinary text: emails, forms, exported spreadsheets, invoices or web copy written in English or French. Its useful output is a list of matches, each with the original text exactly as written, its position in the source, and an interpreted value, usually rewritten as year-month-day. For Canadian material, the important extra job is deciding whether a numeric date is day-first or month-first, and flagging it when the text alone cannot settle the question.
Extraction should not change the source text. Normalizing dates into one format is a separate, deliberate step, and it should only be applied to dates whose meaning is certain.
Date formats commonly found in Canadian text
| Format | Example | How to read it | Ambiguous? |
| YYYY-MM-DD | 2026-10-31 | Year, then month, then day | No, when the four-digit year comes first |
| DD/MM/YYYY | 31/10/2026 | Day, then month, then year | Yes, whenever the day is 12 or lower |
| MM/DD/YYYY | 10/31/2026 | Month, then day, then year | Yes, whenever the day is 12 or lower |
| English long form | October 31, 2026 | Month name, day, year | No |
| French long form | le 31 octobre 2026 | Day, lowercase month name, year | No |
| Two-digit year | 03/04/05 | Cannot be read reliably without context | Yes, highly |
Canadian government style guidance has generally favoured the year-month-day order for all-numeric dates because it avoids confusion. In everyday use, however, both day-first and month-first slash dates appear, influenced by British, French and American conventions as well as by software defaults. Treat any slash date from Canadian text as unresolved until you have evidence for its order.
How to read a Canadian date step by step
- 1. Check whether the date contains a month name. If it does, such as October or octobre, the month is explicit and the date is unambiguous.
- 2. Check whether a four-digit year comes first, as in 2026-10-31. If so, read it as year, month, day.
- 3. For slash or dot dates with the year last, look at the first two numbers. If the first number is greater than 12, it must be the day, so the date is day-first.
- 4. If the second number is greater than 12, it must be the day, so the date is month-first.
- 5. If both numbers are 12 or lower and they differ, as in 03/04/2026, the text alone cannot tell you the order. Look for context: a form label such as DD/MM/YYYY, other dates in the same document that resolve the order, the language of the document, or the system that produced it.
- 6. If both numbers are equal, as in 05/05/2026, the order does not matter for the result.
- 7. If the year has only two digits, treat the whole date as uncertain unless the source documents its convention.
Illustrative examples
The following examples apply the steps above by hand. They are illustrations of the reasoning, not output from a specific tool.
| Source text | Reading | Normalized value |
| 2026-10-31 | Year first, unambiguous | 2026-10-31 |
| 31/10/2026 | First number above 12, so day-first | 2026-10-31 |
| 10/31/2026 | Second number above 12, so month-first | 2026-10-31 |
| 03/04/2026 | Both numbers 12 or lower | Ambiguous: 2026-04-03 or 2026-03-04 |
| 07/07/2026 | Equal numbers | 2026-07-07 |
| October 31, 2026 | Explicit English month | 2026-10-31 |
| le 1er juillet 2026 | Explicit French month; 1er means the first | 2026-07-01 |
Matching Canadian dates with patterns
Regular expressions (search patterns that describe the shape of text) are a common way to find candidate dates. The patterns below are examples written for illustration and have not been tested against a particular engine; adjust and test them on your own data before relying on them.
# Year-month-day, e.g. 2026-10-31
\b(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])\b
# Slash dates with a four-digit year, order unresolved, e.g. 31/10/2026 or 10/31/2026
\b(\d{1,2})/(\d{1,2})/(\d{4})\b
# English long form, e.g. October 31, 2026
\b(January|February|March|April|May|June|July|August|September|October|November|December) (\d{1,2}), (\d{4})\b
# French long form, e.g. 31 octobre 2026 or 1er juillet 2026
\b(\d{1,2}|1er) (janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre) (\d{4})\b
The slash pattern deliberately captures both numbers without assigning them roles. The day-or-month decision belongs in a separate step that applies the rules from the step-by-step section and records whether the result was resolved or ambiguous.
# Illustrative decision logic for a captured slash date (a/b/year)
if a > 12 and b <= 12: order = day-first
elif b > 12 and a <= 12: order = month-first
elif a == b: order = either (same result)
else: order = ambiguous -> flag, do not guess
Unicode and whitespace details that affect matching
- Accented month names: février, août and décembre contain accented letters. These can be stored as a single precomposed character or as a base letter followed by a combining accent. Text that looks identical may fail to match unless both the pattern and the input use the same Unicode normalization form, typically NFC.
- Non-breaking spaces: French typography often places a non-breaking space (U+00A0) between the day and the month name. It looks like a normal space but is a different character. Whether a whitespace class such as \s matches it depends on the regex engine and its settings, so check explicitly or allow U+00A0 in the pattern.
- Capitalization: French month names are normally lowercase, while English month names are capitalized. Use case-insensitive matching if your sources are inconsistent, but keep the original capitalization in the extracted text.
- Ordinals: French uses 1er for the first of the month. English text may use forms such as October 31st. Patterns that expect digits only will miss these.
Normalizing without changing meaning
- Keep the original substring and its position alongside any normalized value, so every change can be traced back.
- Convert only resolved dates. Leave ambiguous dates in their original form with a clear flag.
- Use year-month-day as the normalized output. It sorts correctly as text and cannot be misread as day-first or month-first.
- Do not apply a single document-wide assumption to ambiguous dates unless you have confirmed it, for example from a form label or from other dates in the same file that only fit one order.
- Do not rewrite surrounding text, punctuation or whitespace when replacing a date in place.
Verifying the result
- Count the matches and compare them with a manual scan of a sample of the source text to catch missed formats.
- Check that every normalized date is a real calendar date. A value such as 2026-02-30 means a day and month were swapped or misparsed.
- Review every ambiguous flag by hand or against context before accepting it.
- Spot-check French entries for accented months and non-breaking spaces, which are the most common causes of silent misses.
- Confirm that the source text outside the matched dates is byte-for-byte unchanged if you performed in-place replacement.
Limits of this guide
No specific extraction tool, library or product was evaluated for this article, so it makes no claims about how any particular tool detects or converts Canadian dates. The patterns and decision logic are illustrative and untested. Government style recommendations can change, so consult current official guidance if your output must follow a formal Canadian standard.