Pick a date and the calculator shows how many days are left until it and which day of the week it falls on. For a date in the past it tells you how many days ago it was. The field opens on the next December 31 as an example; replace it with any date from year 1 to 9999.
How it counts
The count runs from today, and today itself is not included: tomorrow is 1 day away, the day after is 2. “Today” is read from your device’s clock, so the answer is right for your own date, not for some server’s time zone. Leap days are counted like any other day when February 29 falls in between.
With JavaScript switched off, the page still shows a worked example, labelled with the date it is correct for.
In a spreadsheet
The formula is one line in both Excel and Google Sheets:
=A1-TODAY()— days left until the date in A1;=TODAY()-A1— days since a date in the past.
TODAY recalculates every time the sheet does, so the number moves on by itself each day — which is exactly what a countdown needs.