HomeEveryday Life › Days Until Calculator

Days Until Calculator

Counts the days from a reference date (default today) to a target date and reports the countdown as weeks and days, approximate months, a calendar breakdown and the target's weekday.

When to use

You need a countdown to an event, deadline or holiday, or how many days ago a date was.

Do not use when: You need business days or an inclusive count between two dates (use date-difference), or an age (use age).

Formula

days = target_date − from_date; weeks = floor(|days| / 7); remaining_days = |days| mod 7; months_approx = |days| / 30.4375

Inputs

ParameterTypeUnitRequiredDescription
target_datedateyesThe event date (YYYY-MM-DD).
from_datedatedefault todayReference date; defaults to the current UTC date.

Outputs

OutputTypeUnitDescription
daysintegerdaystarget_date − from_date; negative when the target is in the past.
weeksintegerweeksfloor(|days| / 7).
remaining_daysintegerdays|days| mod 7.
months_approxnumbermonths|days| / 30.4375 (average Gregorian month).
calendar_textstringWhole years, months and days between the two dates.
target_weekdaystringDay of the week of target_date.
is_pastbooleantrue when target_date is before from_date.
countdown_textstringDays and weeks/days until (or since) the target.

Example

From 2026-09-23 to 2026-12-25: {"target_date":"2026-12-25","from_date":"2026-09-23"}{"days":93,"weeks":13,"remaining_days":2,"months_approx":3.1,"calendar_text":"3 months 2 days","target_weekday":"Friday","is_past":false,"countdown_text":"93 days (13 weeks 2 days) until 2026-12-25"}

From 2026-01-01 to 2027-01-01: {"target_date":"2027-01-01","from_date":"2026-01-01"}{"days":365,"weeks":52,"remaining_days":1,"months_approx":12,"calendar_text":"1 year","target_weekday":"Friday","is_past":false}

GET https://tttkmbb.com/api/v1/calculate/days-until?target_date=2026-12-25&from_date=2026-09-23

Machine access

Sources

FAQ

Is the target day itself counted?

No. From Monday to the following Friday is 4 days; the countdown reaches 0 on the target date.

Which time zone is 'today'?

UTC. Near midnight, users in other zones may see a one-day difference; pass from_date explicitly to avoid it.

Related calculators