Free tool

Age and date calculator

Exact age, difference between dates and business days with Spanish holidays. All in your browser.

26 years 8 months 13 days

Total months320
Total weeks1,393
Total days9,753
Total hours234,072
Next birthday2027-01-01
Days to next birthday109
Turning27 years

Holidays are Spain's national ones (fixed and Good Friday). Regional and local holidays are not included, as they vary by region and municipality.

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

Calculating an age or the days between two dates seems trivial until different month lengths, leap years or holidays come into play. This calculator breaks the age down into real years, months and days, shows the running total and works out how many days remain until the next birthday. For work purposes it counts the days between two dates excluding weekends and Spain's national holidays, and lets you add or subtract business days to a date to know when a deadline falls.

Features

  • Exact age in years, months and days, plus the total in months, weeks, days and hours
  • Countdown to the next birthday and the age they will turn
  • Difference between two dates in calendar and business days
  • Business days with Spain's national holidays (fixed and Good Friday)
  • Add or subtract business or calendar days to any date

How do I calculate an age or the days between dates?

  1. 1

    Choose the mode

    Age, date difference, or add and subtract days.

  2. 2

    Enter the dates

    Birth and calculation date, or the two dates to compare.

  3. 3

    Toggle business days

    Tick the box to discount weekends and Spain's national holidays.

  4. 4

    Read the result

    You get the breakdown in years, months and days, the totals and the resulting date.

Frequently asked questions

How is the exact age in years, months and days calculated?

It starts from the birth date and advances in whole months up to the calculation date, adjusting the day when the month has no such date (for example, someone born on 31 January has their 'month' in February on the 28th or 29th). The remaining days are then counted. This avoids the common mistake of dividing days by 365.

Does it include my region's or city's holidays?

No. Only Spain's national holidays apply (1 and 6 January, Good Friday, 1 May, 15 August, 12 October, 1 November, 6 and 8 December and 25 December). Regional and local holidays vary and are not discounted.

How are leap years handled?

The calculation uses real calendar dates, so 29 February is accounted for automatically. Someone born on 29 February has their birthday countdown land on 28 February in non-leap years for this tool.

Are my dates sent to a server?

No. All calculation runs in your browser with pure JavaScript and the holidays are generated locally. There are no network requests and no data storage.

Related tools

Embed Age and Date Calculator on your site

Add Age and Date Calculator to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/age-date-calculator"
  width="100%"
  height="700"
  frameborder="0"
  title="Age and Date Calculator — miguelacm.es"
></iframe>
View embed in new tab →