Layerbit
Runs entirely in your browser

Date Calculator: Days Between Dates, Add Days & Age

Count the days or working days between two dates with the weekend and public holidays of 48 countries, including every Gulf state and India; add days, months or working days; work out an exact age; convert to and from the Hijri (Umm al-Qura) calendar; measure the time between two moments; count down to a date; and do date maths on a whole column at once.

Days between two dates

Add or subtract days, months or working days

Working days use the weekend and holidays chosen above.
Age calculator

Hijri dates (Umm al-Qura)
In the Hijri calendar

Umm al-Qura is Saudi Arabia's official calendar, computed by your browser's built-in calendar data. Religious dates such as the start of Ramadan and the Eids are set by moon sighting in many countries and can differ by a day.

Time between two moments
Countdown

Uses this device's clock and time zone. Use Share link in the header to send the countdown to someone.

Date maths on a column

How the days are counted

The difference between two dates is the number of midnights between them. From 1 January to 2 January is one day, and from 1 January to 31 December 2026 is 364 days. That is the right answer for questions like "how long until" or "how old is this invoice", and it matches what spreadsheets return when you subtract one date from another. When you are counting days that are used up, such as days of leave, nights booked or days a contract runs, you usually want both the first and the last day included. Tick Count the end date too and the same range becomes 365 days.

Months and years are counted on the calendar, not as a fixed number of days, because months run from 28 to 31 days. The calculator finds the largest number of whole months that fits between the dates and then counts the days left over, so 15 January to 20 March is 2 months and 5 days. It never uses an average month of 30 or 30.44 days, which is why its answers agree with how people count birthdays and anniversaries.

Working days in the UAE, Saudi Arabia and India

"Working days" means the days that are not weekends or holidays, and the weekend depends on the country. Since January 2022 the UAE works Monday to Friday with a Saturday and Sunday weekend, as most of the world does. Saudi Arabia, Qatar, Kuwait, Oman and Bahrain keep a Friday and Saturday weekend, so a deadline of ten working days lands on a different date in Riyadh than in Dubai. In India many offices, shops and factories work six days with only Sunday off, while most banks also close on the second and fourth Saturday of each month.

Public holidays change every year, and Islamic holidays such as Eid move with the lunar calendar and are confirmed only days in advance. Pick a country to skip its public holidays: the list comes from the open date-holidays data set (version shown under the list), except for Qatar, Kuwait and Oman, which that data set does not cover, where Layerbit applies the holidays set out in each country's labour law. Government decrees often lengthen the Eid holidays at short notice, so add any extra days to the holidays box, one date per line, and the calculator leaves them out of the count. A holiday that falls on a weekend is counted once, as a weekend day. Notice periods, visa validity and legal deadlines often have their own counting rules, so check the wording of the contract or regulation as well.

Adding days or months

Adding days is exact: 90 days from 21 November 2026 is 19 February 2027. Adding months keeps the same day of the month, and when that day does not exist the result moves back to the last day of the shorter month, so 31 January plus one month is 28 February, or 29 February in a leap year. That is why 90 days and 3 months are not the same thing: from 21 November, 3 months later is 21 February. Working days skip weekends and listed holidays, and adding one working day to a Friday gives Monday with a Saturday and Sunday weekend, but Sunday with a Friday and Saturday weekend.

Exact age and leap-day birthdays

Age is counted the way birthdays are: the number of complete years since the date of birth, then the complete months since the last birthday, then the remaining days. Someone born on 15 May 1990 is 36 years, 6 months and 6 days old on 21 November 2026, which is 13,339 days. People born on 29 February have a real birthday only in leap years; in other years the calculator treats 28 February as the birthday, which is the convention most software uses. Some countries' laws use 1 March instead for legal age, so check if the exact day matters.

Leap years and week numbers

A year is a leap year if it divides by 4, except for years that divide by 100, which are leap years only if they also divide by 400. So 2000 and 2024 were leap years, 1900 was not, and 2026 is not. Week numbers follow ISO 8601, used across Europe and by most business software: weeks start on Monday, and week 1 is the week that contains the year's first Thursday. That is why 1 January 2027, a Friday, belongs to week 53 of 2026.

Frequently asked questions

Enter the two dates in the first panel. The calculator shows the total number of days, the same span in weeks, months and years, and the number of working days. By default it counts the days from the start date up to the end date without including the end date, so 1 January to 31 December 2026 is 364 days; tick "Count the end date too" to include both, which gives 365.

Use the second panel: it starts from today, and the 30, 60 and 90 day buttons fill in the amount. The result shows the date, its day of the week and its ISO week number. Note that 90 days is not the same as 3 months; choose months as the unit if a document says "three months" rather than "90 days".

Enter your date of birth in the age calculator. It shows your age in years, months and days, your age in total months, weeks and days, the day of the week you were born, and how many days remain until your next birthday. Change "Age on" to find your age on any other date, such as a deadline for an exam or a job application.

Choose the weekend that applies: Saturday and Sunday for the UAE, or Friday and Saturday for Saudi Arabia, Qatar, Kuwait, Oman and Bahrain. Then pick the country under Public holidays of, and its holidays in the range are listed and left out of the count; adding working days in the second panel skips them as well. Eid holidays follow the Umm al-Qura calendar and can move by a day after moon sighting, and governments often add days by decree, so type any extra days into the holidays box.

There is no 31 February, so the result is the last day of February: the 28th, or the 29th in a leap year. The same rule applies to any month-end, so 31 March minus one month is 28 or 29 February, and 31 August plus one month is 30 September. Spreadsheet functions such as EDATE in Excel and Google Sheets behave the same way.

In years without a 29 February, the calculator treats 28 February as the birthday, so the age goes up on that day and the next birthday countdown points to it. In leap years the birthday is 29 February as usual.

No. All the arithmetic runs in JavaScript on this page, and dates of birth and holiday lists never leave your device. The holiday calendars are a file this site serves, loaded when you pick a country, so no date is sent anywhere to look them up. The page keeps working offline once it has loaded.

Enter the Hijri day, month and year in the Hijri panel and the Gregorian date appears beside it; enter a Gregorian date above it for the other direction. The conversion uses the Umm al-Qura calendar, Saudi Arabia's official calendar, as built into your browser, and covers 1300 to 1600 AH. Hijri months have 29 or 30 days, and the panel tells you which when a day does not exist.

Changelog

  • v1.1.0 Public holidays of 48 countries skipped in working-day counts and listed for the range (date-holidays 3.39.2; Qatar, Kuwait and Oman from their labour laws, which that data set lacks), with an optional state or region. Hijri (Umm al-Qura) conversion both ways, time between two moments with hours and minutes, a live countdown, and date maths on a pasted column with CSV export.
  • v1.0.0 Initial release: days, weeks, months and years between dates with optional end-date counting; working days with five weekend patterns and a holiday list; adding or subtracting days, weeks, months, years or working days; exact age with next birthday; ISO week numbers; share links.