Date calculator
Date calculator is a time tool that counts the days between two dates. It also adds or subtracts days from a date, works out an exact age in years, months, and days, and counts down to any date in days and weeks. The tool runs in your browser.
0 days between the two dates.
End date is same day
0 days
Weeks
0w 0d
Approx months
0.0
Approx years
0.00
Today:
Calculation modes
Direct links for each date calculation type.
Days between dates
Calculate exactly how many days are between two dates, with weeks and approximate months and years. Instant, in your browser.
Add or subtract days from a date
Find the date any number of days before or after a start date. Enter a negative number to count back. Leap years are handled. Runs in your browser.
Date of birth calculator
Enter a date of birth to see the exact age today in years, months, and days, plus total days lived. Leap years are handled. Runs in your browser.
Days until a date
Count down to any future date. See exactly how many days and weeks remain. Free, in-browser countdown calculator.
How to calculate the difference between dates
- Enter the start date and end date using the date pickers.
- The tool shows the difference in days, with weeks and approximate months and years.
- Alternatively, enter a date and add or subtract a number of days to find a future or past date.
- All calculations happen instantly in your browser.
Common uses
- Calculating how many days until an event or deadline
- Working out someone's age or how long ago something happened. Dates from APIs often arrive as epoch numbers, so turn the Unix timestamp into a date first.
- Adding days to a date for scheduling or deadlines. For a birthday countdown with the exact age, open the age calculator.
Leap years, ISO 8601 dates and daylight saving are explained in the guide to dates, timestamps and time zones.
Technical specification
- Algorithm or formula: Difference mode subtracts two epoch millisecond values (both dates at local noon) and rounds to whole days. Weeks are days divided by 7, and months and years are approximations (days / 30.4375 and days / 365.25). Add or subtract mode calls
setDateon a local-noon Date. Age counts whole calendar months, then the days since the last monthly anniversary. - Browser API or library: Native JavaScript Date. No external library.
- Input limits: Any date the browser's date picker accepts, from year 1. Add or subtract takes a whole number of days; a result before year 1 or beyond the JavaScript Date range is not shown.
- Output: Days between two dates with weeks and approximate months and years; the new date as a long local date (for example 29 October 2026); age in years, months, days and total days lived; days and weeks until or since a date.
- Known limitations: Every calendar day counts, so there is no business-day or holiday handling. The end date is not included in the count (add 1 to include it). Calculations use the browser's local time zone.
Frequently asked questions
- How many days are between two dates?
- Pick a start and an end date and the tool subtracts them: 1 January 2026 to 1 March 2026 is 59 days, or 8 weeks and 3 days. The end date is not counted, so add 1 to include both dates.
- What date calculations does this tool perform?
- Four modes: days between two dates (with weeks and approximate months and years), add or subtract a number of days from a date, exact age from a date of birth, and days until a date. All of them use the browser's built-in Date, which handles leap years and month lengths.
- Is my data sent to a server?
- All date calculations run in your browser using JavaScript's built-in date functions. Our servers are not involved at any point.
- Does the tool account for leap years?
- Yes. The JavaScript Date API handles leap years correctly in all difference and addition calculations.
- Can I calculate business days (excluding weekends)?
- Every count includes all calendar days, so weekends and holidays are counted too. The tool has no business-day option.
- Can I add months or years to a date, not just days?
- The add/subtract mode takes a number of days. Use a negative number to go back in time. To add a month, enter the number of days in that month.
Related tools
Unix timestamp
Convert between Unix timestamps and human-readable dates. Seconds or milliseconds.
Timezone converter
Convert any time between time zones using the IANA database. Includes common shortcuts for major cities.
Age calculator
Calculate your exact age in years, months, and days from your date of birth. Includes birthday countdown and total days lived.
Pregnancy due date calculator
Calculate your estimated due date from your last period or conception date. Includes gestational age and trimester.
- Background reading: Complete guide to time tools
Reviewed and tested September 30, 2026.