Tool World

Days Until Calculator

Count down to any date or event

Find out exactly how many days, weeks, or months until your special date. Perfect for countdowns to holidays, birthdays, and events.

How it works

The result is derived through the following steps:

  1. target = new Date(inputs.targetDate)
  2. today = new Date()
  3. diffMs = target - today
  4. totalDays = ceil(diffMs / (1000 * 60 * 60 * 24))
  5. weeks = floor(totalDays / 7)
  6. remainingDays = totalDays % 7
  7. hours = ceil(diffMs / (1000 * 60 * 60))
  8. eventName = inputs.eventName || 'your date'

Frequently Asked Questions

Does this include today?

The countdown shows full days remaining, not including the current day.