Matching a calendar question to a tool
Calendar questions come in a few shapes. How long between two dates is handled by the Date difference calculator, the Weeks Between Dates Calculator, the Months Between Dates Calculator and the Years Between Dates Calculator, which differ only in the unit of the answer. Moving a date forward is the job of the Add Months Calculator and the Add Years Calculator. Identifying a date is covered by the Weekday Calculator, Day Of Year Calculator, Week Number Calculator and Iso Week To Date Calculator. Facts about the calendar itself come from the Leap Year Calculator, Days In Month Calculator and Julian Date Calculator. Choose the unit you need in the answer first, because the same pair of dates gives different numbers in days, weeks, months and years.
How the Gregorian calendar counts years
The civil calendar used almost everywhere is the Gregorian calendar, introduced in 1582 when ten days were dropped, so that 4 October was followed by 15 October in the countries that adopted it first. Its rule for leap years has three parts: a year divisible by 4 is a leap year, except years divisible by 100, unless the year is also divisible by 400. So 2024 and 2000 are leap years, while 1900 and 2100 are not. Over a 400-year cycle there are 97 leap years, giving 146,097 days, which averages 365.2425 days per year. That total is divisible by 7, so the weekday pattern repeats exactly every 400 years.
Differences in days are exact, months and years are not
A count of days between two dates is unambiguous once you decide whether both endpoints are included. From 1 January to 31 December of a common year is 364 days if you count the difference, and 365 if you count both days. Months and years are harder, because they vary in length. Between 31 January and 28 February you could report 28 days, or call it one month less three days. Calculators have to choose a convention, such as counting complete calendar months and reporting the remainder in days. When a contract, a visa rule or a warranty defines how months are counted, follow that definition and not a general answer. A worked case: from 15 January 2026 to 15 April 2026 is 90 days (16 + 28 + 31 + 15) and exactly 3 complete months, so dividing days by 30 happens to agree here but would not across a longer span. From 1 March to 1 September is 184 days and 6 complete months, where dividing by 30 gives 6.1. The Months Between Dates Calculator and Years Between Dates Calculator report complete units only: if the end date falls before the day-of-month anniversary, the last partial month or year is not counted.
Adding months and years at month ends
Adding a month to 15 March gives 15 April with no trouble. Adding a month to 31 January raises a question, since February has no 31st. Systems differ here. Some roll over into March, while others move to the last day of the shorter month. The Add Months Calculator clamps the day to the length of the destination month, so 31 January plus one month gives 28 February (29 in a leap year). The Add Years Calculator moves 29 February to 28 February in a non-leap year. For subscription renewals, loan dates and review schedules, check the rule of the system you will compare against. These calculators are useful for planning, and anything legally binding should be checked against the governing document.
Weekdays, day of the year and a quick check
The weekday of any date follows from the count of days from a reference date, taken modulo 7. Knowing that 1 January 2000 was a Saturday, and that each common year shifts the weekday by one and each leap year by two, lets you verify results by hand. January 1, 2026 is a Thursday. The day of year counts from 1 on January 1 to 365 or 366 on December 31, so March 1 is day 60 in a common year and day 61 in a leap year (31 + 29 + 1). Ordinal dates like this appear in manufacturing batch codes, satellite data and some scientific files. To turn a day count into weeks, divide by 7: 100 days is 14 weeks and 2 days, which is the answer the Weeks Between Dates Calculator style of result expresses.
ISO week numbers and year boundaries
ISO 8601 defines weeks that begin on Monday, with week 1 being the week that contains the first Thursday of the year, equivalently the week containing 4 January. As a result, the first days of January can belong to week 52 or 53 of the previous year, and the last days of December can fall into week 1 of the next. For 2026, 1 January is a Thursday, so week 1 begins on Monday 29 December 2025, and the year has 53 weeks. Years with 53 weeks include 2015, 2020 and 2026. Many US calendars number weeks differently, starting on Sunday, so check the system before comparing week numbers.
Julian dates and the other meaning of the term
Astronomers use the Julian Date, a continuous count of days from noon on 1 January 4713 BC in the proleptic Julian calendar. The Julian Date Calculator takes an instant, converting from Unix time with JD = Unix seconds / 86,400 + 2,440,587.5. The instant 1 January 2000 at 12:00 UTC corresponds to JD 2451545.0. Because the count never resets, subtracting two Julian Dates gives an exact interval. The term has a second, informal meaning in some industries, where a Julian date is the year followed by the day of year, such as 2026-032 for 1 February 2026. These are different systems. Make sure you know which one a data file or a food package label uses before converting. Because a Julian Date starts at noon, midnight at the start of 1 January 2000 is JD 2451544.5.
Leap years and days in a month
Days in a month follow the old verse: 31 days in January, March, May, July, August, October and December, 30 in April, June, September and November, and 28 in February or 29 in a leap year. The Days In Month Calculator and the Leap Year Calculator answer these directly, and they become important in age calculations, rent proration and payroll. A person born on 29 February has a legal birthday that varies by jurisdiction in common years.
Time zones and times of day are outside these tools
Apart from the Julian Date Calculator, which takes an instant, these tools work with calendar dates and not with clock times, so they ignore time zones, daylight saving time and leap seconds. A flight that leaves on one date and lands on the next, or an event whose start is at midnight, needs a full timestamp with a time zone. For a deadline set as a date, check whose calendar date applies, since a day that has ended in Tokyo may not yet have started in Los Angeles. Date arithmetic is exact once you settle the convention for endpoints, month lengths and the week system.
Frequently asked questions
- Is 2100 a leap year?
- No. Years divisible by 100 are not leap years unless they are also divisible by 400, so 2100 is a common year and 2000 was a leap year.
- Why can January 1 belong to week 52 or 53?
- ISO 8601 puts the week containing the first Thursday of the year in week 1, so days at the start of January can fall in the last week of the previous year.
- What is the difference between date difference and months between dates?
- A date difference counts days, which are all the same length. Months between dates depends on a convention for unequal month lengths, so the result can differ from days divided by 30.
- Is a Julian date the same as the Julian calendar?
- No. The Julian Date is a continuous day count used in astronomy, while the Julian calendar is an older civil calendar that the Gregorian calendar replaced.