Tools

Home
StopwatchCountdown TimerDate DifferenceTimerTimezone Converter

Sort Calendar Dates

Sort a list of dates in ascending or descending order. Supports multiple date formats.

Your files never leave your browser

Sorted Dates

Sorted dates will appear here...
Ready·Enter dates to sort

Paste a messy list of dates — ISO, slashes, spelled-out months, all mixed together — and sort them oldest-to-newest or newest-first in one click. No need to convert formats beforehand; auto-detect handles that for you. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Dates
→
Parse & Detect Format
→
Sort & Output

Each line gets parsed independently. The auto-detect mode checks for ISO dates first, then textual months like “Jan” or “March,” and finally tries numeric slash formats. Once every date is converted to a timestamp, sorting is just a comparison — oldest to newest or the reverse. Any lines that can’t be read as valid dates get flagged at the bottom so you know exactly what failed.

Examples

Sorting Project Deadlines

You pulled milestone dates from three different systems. Each one uses a different format.

INPUT
03/15/2025 2025-01-10 February 28, 2025 2024-12-01 06/01/2025
OUTPUT
2024-12-01 (Sunday, December 1, 2024) 2025-01-10 (Friday, January 10, 2025) 2025-02-28 (Friday, February 28, 2025) 2025-03-15 (Saturday, March 15, 2025) 2025-06-01 (Sunday, June 1, 2025)

Reverse-Sorting Invoice Dates

Newest first — for finding the most recent invoice fast.

INPUT
2023-07-14 2024-01-03 2023-11-20 2024-06-30
OUTPUT (DESCENDING)
2024-06-30 (Sunday, June 30, 2024) 2024-01-03 (Wednesday, January 3, 2024) 2023-11-20 (Monday, November 20, 2023) 2023-07-14 (Friday, July 14, 2023)

Mixed Formats with Invalid Entries

Real-world data is messy. Some lines won’t parse — and that’s okay. The tool sorts what it can and flags the rest.

INPUT
Jan 1, 2020 2024-03-15 not-a-date 12/25/2023 TBD
OUTPUT
2020-01-01 (Wednesday, January 1, 2020) 2023-12-25 (Monday, December 25, 2023) 2024-03-15 (Friday, March 15, 2024) --- Invalid dates (2) --- not-a-date TBD

Who Uses This

📋 Project Managers

Ordering milestone and delivery dates exported from different tracking tools.

📊 Data Analysts

Cleaning up date columns before importing into a database or dashboard.

💰 Accountants

Sorting transaction and invoice dates for quarterly or year-end reporting.

🎓 Students

Organizing assignment due dates and exam schedules into chronological order.

Common Mistakes

Confusing MM/DD with DD/MM

A date like 03/04/2024 could be March 4 or April 3 depending on format. If auto-detect picks the wrong one, switch to the specific format that matches your data. The tool defaults to MM/DD/YYYY for ambiguous cases.

Including timestamps or extra text

Pasting “2024-03-15 14:30:00” or “Due: March 15” won’t work — the parser expects a clean date on each line. Strip timestamps and labels first.

Leaving blank lines in the list

Blank lines are skipped, not flagged as errors. That is fine usually, but if your count looks off, it might be because empty rows aren’t being counted as entries.

Technical Details

Frequently Asked Questions

What date formats can I sort?

ISO dates (2024-03-15), US format (03/15/2024), European format (15/03/2024), and written-out dates like “March 15, 2024” or “Mar 15, 2024.” You can even mix them all in the same list if you use auto-detect mode.

How does auto-detect know which format I’m using?

It tries ISO first (four-digit year, then dashes). If that doesn’t match, it looks for month names like “January” or “Dec.” For numeric slash formats, it checks whether the first number fits as a month (1–12). If both MM/DD and DD/MM are valid, it picks MM/DD/YYYY — select the format manually if your data is European.

Can I sort dates from a spreadsheet?

Yes. Copy the date column from Excel or Google Sheets and paste it straight into the input box. Each cell becomes its own line. Just make sure there’s no extra text in the cells — only dates.

Are my dates stored or sent to a server?

No. The entire tool runs in your browser using JavaScript. Nothing gets uploaded, no cookies are set, and the tool works offline after the page loads. Close the tab and your data is gone.

Why are some of my dates showing as invalid?

Usually it is a formatting issue. Common culprits: timestamps attached to the date (like “2024-03-15T14:30”), extra spaces, or text mixed in with the date. Try switching from auto-detect to the specific format your dates use. If a date like “02/30/2024” fails, that’s because February 30 doesn’t exist — the parser validates actual calendar dates.

Share: