Home › Text Tools › Extract Dates from Text

Extract Dates from Text

Paste emails, notes, logs or documents and every date is found, whether it is written as 03/15/2024, 2024-03-15, March 15th, 2024 or 15 Mar 2024. Impossible dates are rejected, and the rest are converted to a single format you choose, as a list or in place in the text.

Last updated:

Options
0dates found
–earliest
–latest
0unique
–span
0invalid skipped

Dates in your text

Details

#FoundDateLineNote
Advertisement
Advertisement

How to use the Extract Dates from Text

  1. Paste your text or open a text file. An example is loaded so you can see the result immediately.
  2. Tell it how numeric dates are written: month first (US, 03/04/2024 = March 4) or day first (4 March).
  3. Choose the output format, such as ISO 2024-03-04, March 4, 2024, or your own pattern.
  4. Pick the output: a list of dates (sort and dedupe if you like) or your text with every date rewritten in the new format.
  5. Check the table for ambiguous or flagged dates, then copy the result or download CSV.

Date formats recognized

Written in the textTypeRead as (ISO)
2024-03-15, 2024/03/15, 2024-03-15T09:30:00ZISO 8601 / year first2024-03-15
03/15/2024, 3-15-2024Numeric, month first (US)2024-03-15
15/03/2024, 15.03.2024Numeric, day first (15 > 12, detected automatically)2024-03-15
04/05/2024Numeric, ambiguous2024-04-05 (US) or 2024-05-04 (day first)
March 15, 2024 · Mar 15 2024 · March 15th, 2024Month name first2024-03-15
15 March 2024 · 15th of March, 2024 · 15-Mar-2024Day first with month name2024-03-15
Friday, March 15, 2024With weekday (checked against the calendar)2024-03-15
3/15/24 · 15-Mar-242-digit year (optional)2024-03-15
March 2024Month and year (optional)2024-03-01
March 15No year (optional, year you choose)YYYY-03-15
20240315Compact (optional, years 1900–2099)2024-03-15

Validation rules

  • Real calendar dates only. Months must be 1–12 and the day must exist in that month. February has 29 days in leap years: years divisible by 4, except century years not divisible by 400 (2000 was a leap year, 1900 was not).
  • Numbers glued to other numbers are ignored, so version numbers like 1.2.10, IP addresses and long IDs are not mistaken for dates.
  • Two-digit years use a sliding pivot: 00–49 → 2000–2049, 50–99 → 1950–1999.
  • Weekday check. When a weekday is written next to a date, the tool computes the real weekday and flags a mismatch, which often reveals a typo in the day or year.

Format pattern tokens

TokenOutput for 2024-03-05TokenOutput for 2024-03-05
YYYY2024DD05
YY24D5
MMMMMarchDo5th
MMMMarddddTuesday
MM03dddTue
M3[text]text (literal)

ISO 8601 (YYYY-MM-DD) is the safest format for spreadsheets, databases and file names because it sorts correctly as plain text and cannot be confused between US and day-first readings. To work with the extracted dates, try the days between dates calculator or the date format converter.

Frequently asked questions

Which date formats can it find?

ISO dates like 2024-03-15 or 2024/03/15 (with optional time such as T09:30:00Z), numeric dates with slashes, dashes or dots like 3/15/2024, 03-15-2024 and 15.03.2024, and written dates like March 15, 2024, Mar 15 2024, March 15th, 2024, 15 March 2024, 15th of March 2024, 15-Mar-2024 and the same with a weekday in front. Optional settings add 2-digit years, month-and-year dates, dates without a year and compact 20240315 dates.

How does it handle 04/05/2024: April 5 or May 4?

Numeric dates follow the order you choose. With Month first (US) it is read as April 5, with Day first as 4 May. If the first number is over 12, as in 25/03/2024, it can only be day-first, so it is read that way automatically. Dates where both numbers are 12 or less and different are marked ambiguous in the table so you can check them.

How are 2-digit years converted?

When 2-digit years are allowed, 00 to 49 become 2000 to 2049 and 50 to 99 become 1950 to 1999, so 3/4/24 is 2024 and 3/4/87 is 1987. Two-digit years are only accepted with slashes or dashes, because dotted numbers like 1.2.10 are usually version numbers.

Does it check whether a date is real?

Yes. Each date is checked against the calendar, including leap years, so 2024-02-29 is accepted but 2023-02-29, April 31 and month 13 are skipped and counted as invalid. If a weekday is written next to the date, such as Tuesday, March 26, 2024, the tool also checks that it matches and flags it if not.

Can I change the dates inside my text instead of listing them?

Yes. Set Output to Text with dates replaced. The original text is kept exactly as is, and only the dates are rewritten in the format you chose, which is a quick way to standardize dates in a document or a CSV export.

What tokens can I use in a custom format?

YYYY (2024), YY (24), MMMM (March), MMM (Mar), MM (03), M (3), DD (05), D (5), Do (5th), dddd (Tuesday) and ddd (Tue). Put literal text in square brackets, for example [Week of] MMM D. Anything else, such as slashes, dots, commas and spaces, is copied as written.

Does it understand relative dates like tomorrow or next Friday?

No. Only dates written with a day, month and year (or the optional partial forms) are extracted, because relative expressions depend on when the text was written. Times are recognized as part of ISO timestamps but only the date part is output.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Extract Numbers from TextPull every number out of text: decimals, negatives and percentages, with sum, average and CSV.Extract Text Between DelimitersPull out every piece of text between brackets, quotes, HTML tags or your own start and end markers.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Extract Phone NumbersFind phone numbers in any text, normalize them to E.164, remove duplicates and export CSV.Paragraph to Bullet Points ConverterSplit paragraphs into bullet points by sentence or clause, with your choice of bullet style.Trim Characters from LinesRemove the first or last N characters, or text before/after a marker, on every line.Compare Two ListsFind items only in list A, only in list B, in both lists, or in either, with copy and sort.DOCX to Text ConverterExtract plain text from Word .docx files, in batch, with list markers, tables and .txt download.English to IPA ConverterConvert English text to IPA phonetic transcription in US or UK accent, with stress marks.Hidden Character DetectorFind and remove zero-width spaces, non-breaking spaces and other invisible Unicode characters.Letter to Number ConverterConvert letters to alphabet numbers (A=1 to Z=26) and back, with ASCII codes and letter sums.Markdown to Word ConverterConvert Markdown to a styled Word .docx file with headings, lists, tables, code and links.Plural GeneratorConvert English nouns from singular to plural and back, irregulars included, one word per line.Remove Empty LinesDelete blank and whitespace-only lines, or collapse gaps to one, with before/after line counts.Remove Text FormattingPaste rich text from Word, Google Docs or the web and get clean plain text instantly.Smart Quotes ConverterConvert curly quotes, dashes and ellipses to straight ASCII, or straight quotes to typographic ones.Text to HTML ConverterTurn plain text into clean HTML: paragraphs, line breaks, links, lists and escaped entities.Text to Word ConverterTurn text or a .txt file into a Word .docx with your font, margins and page size.WhatsApp Text FormatterFormat WhatsApp messages with bold, italic, strikethrough, monospace, lists and quotes, then copy.Word CombinerBlend two or more words into portmanteaus, compound and clipped names for brands and wordplay.Word to HTML ConverterConvert Word .docx files or pasted rich text into clean, semantic HTML with live preview.Word Wrap ToolWrap text at any column width with hard line breaks, indents and prefixes, or unwrap it again.Daily Affirmation GeneratorGet random positive affirmations by theme; save favorites, copy them or make an image card.Business Plan GeneratorFill in a guided form and get a formatted business plan with financial tables, as Word or PDF.Keyword Match Type ConverterTurn a keyword list into broad, "phrase", [exact] and negative match types for PPC ads.Discord Text FormatterFormat Discord messages with bold, spoilers, headers, quotes, lists and code blocks, with live preview.DNA Reverse ComplementGet the reverse, complement or reverse complement of DNA/RNA, FASTA and IUPAC codes supported.Filter Lines Containing TextKeep or remove lines that contain words or match a pattern, with match counts and regex.Focus Reading ConverterBold the first letters of every word for faster, focused reading. Copy as rich text or HTML.Memo GeneratorWrite a business memo in standard To/From/Date/Subject format, then print, copy or save as .docx.PDF Text CleanerFix text copied from a PDF: join broken lines, undo hyphen splits, drop page numbers and headers.Pros and Cons List MakerWeigh a decision with a weighted pros and cons list, a score, a verdict and easy export.Remove Numbers from TextStrip all numbers and digits from text, keep MP3-style words or ordinals, and tidy the spaces.Return Policy GeneratorCreate a return and refund policy for your store as text or HTML, with a refund example.Screenplay FormatterType a script in plain text (Fountain) and get a properly formatted screenplay, page count and PDF.
See all 96 Text Cleaning & Formatting →