Countdown Calculator: Days Until a Date

Pick a start date and a target date to see how many days, weeks and hours remain. The start date begins as today.

Updated

Embed this calculator

Paste this code into your page. The calculator runs inside the frame and links back to the full version.

Keep the credit link in place. Do not resell the calculator.

Formula

days = target date - start date (calendar days, midnight to midnight)

weeks = floor(days ÷ 7), extra days = days mod 7, hours = days × 24

Worked example

From 1 January 2026 to 1 March 2026: January has 31 days and February 2026 has 28, so the total is 31 + 28 = 59 days. That is 8 whole weeks (56 days) plus 3 days, and 59 × 24 = 1,416 hours.

Frequently asked questions

How are the days until a date counted?

It counts the calendar days between the two dates, not including the start day. From 1 January 2026 to 1 March 2026 that is 31 + 28 = 59 days.

How many weeks is that?

Divide the days by 7. 59 days is 8 whole weeks and 3 extra days, because 8 × 7 = 56.

How are hours worked out?

Hours are the days multiplied by 24, counted from midnight to midnight. 59 days is 59 × 24 = 1,416 hours. Daylight saving changes are ignored.

Why do I get a date error?

The target date must be a real date and must not be before the start date. To count back from a past date, swap the two dates.