Calendar Date Sorter
Sort dates in chronological or reverse order. Supports multiple formats (YYYY-MM-DD, MM/DD/YYYY, DD.MM.YYYY). Bulk input, gap analysis, export.
About
Misordered dates cause scheduling conflicts, data corruption in spreadsheets, and compliance failures in audit trails. This tool parses dates from 6 common formats - including YYYY-MM-DD (ISO 8601), MM/DD/YYYY, DD.MM.YYYY, and natural language like January 15, 2024 - normalizes them to epoch milliseconds, and sorts via direct compare(a, b) on timestamp values. Gap analysis computes Δd between consecutive entries in days, exposing missing records or irregular intervals. The parser rejects ambiguous input and flags errors per line. It does not guess ambiguous formats like 01/02/03 without context; you must select the expected format or rely on ISO 8601 for unambiguous results.
Formulas
Sorting operates on epoch milliseconds. Each input string is parsed into a timestamp t via the normalized Date constructor:
The comparator for ascending order:
Gap between consecutive sorted dates i and i+1:
Where t = epoch timestamp in milliseconds, 86400000 = milliseconds per day (24 × 60 × 60 × 1000), and Δd = gap in days between consecutive dates.
Reference Data
| Format Name | Pattern | Example | Standard | Region | Sortable Natively |
|---|---|---|---|---|---|
| ISO 8601 | YYYY-MM-DD | 2024-03-15 | ISO 8601 | International | Yes |
| US Short | MM/DD/YYYY | 03/15/2024 | Common US | United States | No |
| EU Dot | DD.MM.YYYY | 15.03.2024 | DIN 5008 | Germany, Russia | No |
| EU Slash | DD/MM/YYYY | 15/03/2024 | Common EU | UK, France, India | No |
| Long Month | Month DD, YYYY | March 15, 2024 | AP Style | English-speaking | No |
| Short Month | DD Mon YYYY | 15 Mar 2024 | RFC 2822 | International | No |
| Year-Month | YYYY-MM | 2024-03 | ISO 8601 | International | Yes |
| US Long | Month DD YYYY | March 15 2024 | Informal | United States | No |
| Compact | YYYYMMDD | 20240315 | ISO 8601 Basic | International | Yes |
| Dash EU | DD-MM-YYYY | 15-03-2024 | Common EU | Europe, Asia | No |
| Unix Timestamp | Seconds since epoch | 1710460800 | POSIX | Computing | Yes |
| Excel Serial | Days since 1900-01-01 | 45366 | Microsoft | Spreadsheets | Yes |