Skip to content

Age In Days Calculator

Count the days from one date to another. 2024-01-01 to 2024-02-01 is 31 days. The count is the number of midnights between the dates.

Result

Enter two dates

How to Use

  1. 1 Enter the start date and the end date.
  2. 2 Read the day count.
  3. 3 2024-01-01 to 2024-02-01 is 31 days.

Example Output

  • 2024-01-01 to 2024-02-01 is 31 days.

About This Tool

Dates use YYYY-MM-DD. The order can run either way. The result is the absolute number of days.

Counting the 31 midnights from January to February

Type 2024-01-01 in Start date and 2024-02-01 in End date. The headline reads 31. The label above the headline reads Days. The sentence under the headline reads: 2024-01-01 to 2024-02-01 is 31 days. The labeled line is Days 31. The count is the number of midnights between the dates. January 2024 has 31 days, so the walk from the first of January to the first of February crosses 31 midnights. The steps are read both dates, count the midnights between them, and show that absolute day count. Dates use YYYY-MM-DD.

The count is absolute. Swap the fields so the start is 2024-02-01 and the end is 2024-01-01. The sentence reads 2024-02-01 to 2024-01-01 is 31 days. The headline is still 31. The page keeps the order you typed in the sentence and uses the positive distance as the number. The same date in both fields is 0. 2024-01-01 to 2024-01-01 is 0 days. One midnight is one day. 2024-01-01 to 2024-01-02 is 1 day, and the sentence uses day rather than days when the count is 1. Every other count, including 0 and 31, uses days.

A value that is not a real date in YYYY-MM-DD is refused. 2024-02-31 in the start field is refused with Start date must be a date as YYYY-MM-DD. The end field uses the same sentence with End date. A month name, a slash date, or a blank field fails that check. The button says Count the days. Before you submit, the waiting line is Enter two dates. Reset puts 2024-01-01 and 2024-02-01 back. Copy result copies the sentence.

The page does not turn the 31 into weeks, months, and years. It does not ask for a time of day. Both dates are calendar dates at the format above, and the distance is whole midnights. A leap year is visible when February is in the span. 2024-02-01 to 2024-03-01 is 29 days. 2023-02-01 to 2023-03-01 is 28 days. The page is counting the days that the calendar has between those dates, not a fixed 30.

What the 31 Days Are

The number is the count of midnights between the two dates. From 2024-01-01 through the night of 2024-01-31, there are 31 of those midnights before 2024-02-01. The headline is 31. The line is Days 31. The sentence names both dates and the count. It does not add an extra day for including both endpoints as a pair of occupied dates. The first and the second of January are 1 day apart, not 2. The same date twice is 0 days, because no midnight lies between a date and itself.

The order in the sentence is the order you typed. The number is the absolute distance, so reversing the sample still prints 31. The page does not print a minus sign when the end is earlier. It does not print weeks beside the days. The steps stay fixed: read both dates, count the midnights between them, and show that absolute day count. YYYY-MM-DD is the only format. A date the calendar does not contain, such as 2024-02-31, never becomes a 31 or a 0. It is refused before a count.

How 2024-01-01 to 2024-02-01 Is 31

Read the sample dates. The start is the first day of January 2024. The end is the first day of February 2024. The calendar days of January are the midnights in between: the 1st to the 2nd, the 2nd to the 3rd, and so on through the 31st to the 1st of February. That is 31 steps. The headline is 31. The sentence is 2024-01-01 to 2024-02-01 is 31 days. You can check a shorter pair the same way. From the 1st to the 2nd is one midnight, and the page says 1 day. From the 1st to the 1st is no midnight, and the page says 0 days.

Weeks are that day count divided by 7, with a remainder. The Age in Weeks Calculator turns the days between two dates into weeks and leftover days. 2024-01-01 to 2024-01-29 is 4 weeks and 0 days. A week is 7 days. The headline there is the week count. This page would leave 2024-01-01 to 2024-02-01 as 31 days and would not divide by 7. Use the weeks calculator when you want weeks and leftover days. Use this page when the number you want is 31 days.

Dates the Counter Will Not Invent

The page will not accept a month name or a slash. January 1, 2024 is refused with the YYYY-MM-DD sentence for the field that holds it. 01/01/2024 is refused the same way. The page will not guess which number is the month. It will not fill in today when a field is blank. Both fields are required, and each must be a real date. 2024-02-31 is not a real date, so the start field refuses it. 2023-02-29 is not a real date either, because 2023 was not a leap year. 2024-02-29 is a real date, and it can be used in a count.

The page does not attach a clock. There is no hour field. Two dates that are the same calendar day are 0 days even if you think of them as morning and evening. The count is midnights between dates, not hours between timestamps. The page does not convert the result to weeks inside this sentence. It does not look up a birthday on a server. The two fields are the whole input. Reset restores 2024-01-01 and 2024-02-01 so the 31 can be checked again.

Counts You Can Recompute

Count the sample and confirm headline 31, line Days 31, and the sentence 2024-01-01 to 2024-02-01 is 31 days. Swap the dates and confirm 2024-02-01 to 2024-01-01 is 31 days. Set both fields to 2024-01-01 and confirm 0 days. Set the end to 2024-01-02 and confirm 1 day. Set the start to 2024-02-01 and the end to 2024-03-01 and confirm 29 days. Set the year to 2023 for that same February-to-March pair and confirm 28 days. Type 2024-02-31 and confirm Start date must be a date as YYYY-MM-DD, or the end-date sentence if that was the field you typed in. Reset and count once more so 31 is the last headline.

A calendar split beside the day total is a different reading of the same sample. The Date Difference Calculator counts the calendar span and the total days. 2024-01-01 to 2024-02-01 is 0 years, 1 month, and 0 days. The total is 31 days. The headline there is 31 days. The lines include years, months, days, and total days. This page prints the 31 and does not print the years and months. Use the difference calculator when you want that calendar split and the total. Use this page when the sentence you want is the absolute midnight count alone.

Limits of a Midnight Count

The count is whole days between two valid dates. It is not an age in years, not a business-day count, and not a count that skips weekends. Every midnight counts, including weekends. The page does not know a holiday. It does not apply a time zone, because no clock is entered. YYYY-MM-DD is interpreted as a calendar date. The absolute value means you cannot use a minus sign to show direction. Direction, if you need it, is the order of the dates inside the sentence. 2024-02-01 to 2024-01-01 still says 31 days, and the dates in the sentence show which one you put first.

Leap days are included when they fall between the dates. That is why February 2024 contributes 29 days from the 1st to the 1st of March, and February 2023 contributes 28. The page does not offer a switch to ignore 29 February. An invalid day is refused rather than rolled into the next month. 2024-02-31 does not become 2024-03-02. The error is Start date must be a date as YYYY-MM-DD or the matching end-date sentence. There is no third field for a time, a week number, or a format choice. The sentence uses day only when the count is exactly 1. A count of 0 uses days, and a count of 31 uses days. Write the year with the month and the day. A February span in 2024 is not the same span in 2023, and the page will not assume a leap year when the year you typed is 2023.

Mistakes That Miss the 31

The common miss is to count both endpoints and expect 32. The span from 1 January to 1 February is 31 midnights, and the headline is 31. Another miss is to expect a minus when the later date is typed first. The number stays 31, and the sentence keeps your order. Another miss is to type a slash date. The format is YYYY-MM-DD. Another miss is to treat 2024-02-31 as the last day of February. It is refused. Another miss is to read 31 as months or weeks. The label is Days. A sixth miss is to expect 2024-01-01 to 2024-01-01 to be 1. It is 0 days, because the dates are the same.

Completed years, months, and days from a birth date are a different split. The Chronological Age Calculator counts completed years, months, and days from a birth date to an as-of date. From 15 January 2000 to 9 November 2026 is 26 years, 9 months, 25 days. The as-of date must be on or after the birth date. The page does not convert that span into a single midnight total on this form. Use it when you want completed calendar age. Use the Days line here when you want 31 for the January-to-February sample.

Using the Day Count

Enter both dates in YYYY-MM-DD, press Count the days, and read the sentence before you copy the headline. The sentence carries the dates and the number. For the sample it says 2024-01-01 to 2024-02-01 is 31 days. If you reversed the fields, the number matches and the date order in the sentence shows the reversal. If the number surprises you, count the month that sits between them. January has 31 days, so the 1st to the next 1st is 31. February depends on the year, which is why 2024 gives 29 and 2023 gives 28 for the 1st to the 1st of March.

The page does not store the count. Copy result copies the sentence, which is the useful record. A headline of 31 without the dates can be any 31-day pair. Keep the sentence. Reset when you want the sample pair back. Do not add one to include both dates unless you are answering a different question than this page answers. This page answers midnights between the dates.

Reading Days 31

Read the sample in this order. The headline is 31. The label is Days. The sentence is 2024-01-01 to 2024-02-01 is 31 days. The line is Days 31. The steps are read both dates, count the midnights between them, and show that absolute day count. A refusal is not 0 days. Start date must be a date as YYYY-MM-DD and End date must be a date as YYYY-MM-DD mean there is no count to record. A real 0 is the sentence for two equal dates. Write the error, or write the sentence, and do not mix them. Copy result copies the sentence, so the dates travel with the number.

Adding a fixed span to one date is a different record. The Pregnancy Due Date Calculator adds 280 days to the first day of the last menstrual period. A last menstrual period of 2024-01-01 plus 280 days is 2024-10-07. The result says this is not a diagnosis. It does not count the midnights between two dates you both choose, and it does not print 31 for the January-to-February pair. Use it when the input is one date and the output is that date plus 280 days. Use Days 31 here when both dates are already chosen.

What 31 Days Does Not Decide

The count does not decide an anniversary, a deadline policy, or a medical date. It decides how many midnights lie between two calendar dates. You chose the start. You chose the end. The page required YYYY-MM-DD, rejected dates the calendar does not have, counted the absolute midnights, and printed them. For the sample, that printout is 31. Reversing the fields does not change the 31. Changing the year of a February span can change the number, as 29 and 28 show.

Keep the sentence, not only the headline. A note that says 31 can be this sample or any other 31-day pair, including a swapped pair whose sentence starts with February. The page does not store the run. Reset and Count the days should show 2024-01-01 to 2024-02-01 is 31 days again. The line should read Days 31.

Checks on the Sample Span

Count the sample and confirm 31 days. Swap the dates and confirm the number stays 31 while the sentence order changes. Set both dates to 2024-01-01 and confirm 0 days. Set the end to 2024-01-02 and confirm 1 day. Count 2024-02-01 to 2024-03-01 and confirm 29 days. Count 2023-02-01 to 2023-03-01 and confirm 28 days. Type 2024-02-31 and confirm the YYYY-MM-DD refusal. Reset and count once more so the sample sentence is the last result.

A second count of a known Unix time is not this calendar walk. The Unix Time to Date turns Unix seconds into a UTC date and time. 1600000000 is 2020-09-13 12:26:40. The page uses UTC and does not apply a time zone from your browser. It does not count midnights between 2024-01-01 and 2024-02-01. Use it when you have seconds and you want that UTC timestamp. Use this page when both values are dates in YYYY-MM-DD and the result you want is 31 days.

Frequently Asked Questions

What is 2024-01-01 to 2024-02-01?

31 days. The headline is 31, the line is Days 31, and the sentence is 2024-01-01 to 2024-02-01 is 31 days. The count is the number of midnights between the dates.

What if the dates are reversed?

2024-02-01 to 2024-01-01 is 31 days. The number is absolute. The sentence keeps the order you typed. The page does not print a minus sign.

What if both dates match?

The count is 0 days. 2024-01-01 to 2024-01-01 is 0 days. No midnight lies between a date and itself. A count of 1 is written as 1 day.

How are dates written?

Dates use YYYY-MM-DD. A slash date, a month name, or a blank field is refused. 2024-02-31 is refused with Start date must be a date as YYYY-MM-DD or the matching sentence for the end date.

Does February change the count?

Yes, when February is the span. 2024-02-01 to 2024-03-01 is 29 days. 2023-02-01 to 2023-03-01 is 28 days. The page counts the calendar days between the dates.

Does the page also show weeks or months?

No. The label is Days. The sample is 31 days, not a week count and not 1 month. Other tools split weeks or calendar units. This sentence is the midnight count.

Does the page use a clock or a time zone?

No. There is no hour field. Two dates are whole calendar dates. The count is midnights between them, not hours, and no browser time zone is applied.

What does Copy result copy?

The sentence, such as 2024-01-01 to 2024-02-01 is 31 days. The dates travel with the number. Reset restores 2024-01-01 and 2024-02-01.