AnsRioSmart tools. Clear answers.
Home / Dates & time / Sort dates and inspect calendar gaps
Dates & time

Sort dates and inspect calendar gaps

Sort dates and inspect calendar gaps: Validate Gregorian dates, sort them chronologically, preserve duplicates, and report days since the previous sorted date.

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Sort dates and find gaps.

QUICK ANSWER

3 sorted dates

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

Validate Gregorian dates, sort them chronologically, preserve duplicates, and report days since the previous sorted date.

Input definitions

One YYYY-MM-DD date per line
Plain text; maximum 200,000 characters.

A worked example

One YYYY-MM-DD date per line
2026-01-10 2026-01-01 2026-01-03
3 sorted dates

Assumptions & limits

1–1,000 date-only values in years 0001–9999. Gaps are calendar days, not local elapsed hours.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-10-17. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

What happens to duplicate dates?

Duplicates are preserved. After sorting, consecutive duplicates show a zero-day gap. Use a duplicate-removal workflow first if each date should occur only once.

How does Sort dates and inspect calendar gaps work?

Validate Gregorian dates, sort them chronologically, preserve duplicates, and report days since the previous sorted date.

What are the limits of Sort dates and inspect calendar gaps?

1–1,000 date-only values in years 0001–9999. Gaps are calendar days, not local elapsed hours.

How do I keep the full worksheet?

Run the tool and choose Download file. The on-page table is a preview and may show only the first 20 rows; the downloaded file contains the full result. CSV downloads escape spreadsheet formula prefixes. Inputs and files are processed on your device.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work