0
0

Counting Days Between Two Dates

Introduction

Many aptitude and reasoning problems ask for the exact number of days (or weeks) between two dates. Accurate counting requires handling month lengths (30/31/28/29), leap years, and inclusive/exclusive endpoints correctly.

Pattern: Counting Days Between Two Dates

Pattern

Compute total days by splitting the span into whole years, whole months and remaining days - account for leap years and choose inclusive/exclusive counting as required by the question.

Step-by-Step Example

Question

Find the number of days between 15 August 2023 and 15 August 2024 (inclusive of start date and end date).

Solution

  1. Step 1: Decide inclusive/exclusive rule

    The question says inclusive of start and end date. That means count both 15 Aug 2023 and 15 Aug 2024.
  2. Step 2: Count full years and check leap

    From 15 Aug 2023 to 15 Aug 2024 is exactly one year. 2024 is a leap year (divisible by 4, and not a non-400 century) → this year has 366 days.
  3. Step 3: Translate "one year inclusive" to days

    One full year inclusive of both endpoints = 366 days (because the span includes 29 Feb 2024). If the question had been exclusive of one end, subtract 1 day accordingly.
  4. Final Answer:

    366 days
  5. Quick Check:

    Check leap: Feb 2024 exists (29 Feb) → ordinary 365 becomes 366 → inclusive endpoints confirm 366 ✅

Quick Variations

1. If endpoints are the same date and inclusive → 1 day; exclusive → 0 days.

2. For spans across months, convert months to days using month lengths (Jan 31, Feb 28/29, Mar 31, Apr 30…).

3. For long spans, count whole years first (use 365/366), then months, then leftover days to reduce mistakes.

Trick to Always Use

  • Step 1 → Decide inclusive or exclusive counting at the start (this changes the final ±1).
  • Step 2 → Break the interval into whole years, whole months, and remaining days; handle leap years when the span crosses Feb in a leap year.

Summary

Summary

  • Break the span into whole years, months, and leftover days to simplify counting.
  • Always determine whether endpoints are counted (inclusive) or not (exclusive) before computing.
  • Account for leap years only if the range includes 29 February of a leap year.
  • Quick method: years → convert to days (365/366), add month-days (use month table), then add leftover days; finally adjust for inclusive/exclusive.

Example to remember:
15 Aug 2023 → 15 Aug 2024 (inclusive) = one year; 2024 is leap → 366 days.

Practice

(1/5)
1. Find the number of days between 1st January 2023 and 1st January 2024 (exclusive of both dates).
easy
A. 364
B. 365
C. 366
D. 367

Solution

  1. Step 1: Find the total span

    From 1 Jan 2023 to 1 Jan 2024 the difference (end - start) is 365 days because 2023 is not a leap year.
  2. Step 2: Convert to strictly-between (exclusive) count

    Exclusive of both start and end means we count only the days strictly between them: (end - start) - 1 = 365 - 1 = 364 days.
  3. Final Answer:

    364 → Option A
  4. Quick Check:

    One full year = 365 days; removing both endpoints leaves 364 days strictly between the two dates ✅
Hint: For exclusive ranges one year apart, strictly-between days = (365 or 366) - 1.
Common Mistakes: Incorrectly adding or subtracting 2 instead of using the strictly-between formula.
2. How many days are there between 10th March 2024 and 10th April 2024 (inclusive)?
easy
A. 30
B. 31
C. 32
D. 33

Solution

  1. Step 1: Break the period

    From 10 March 2024 to 31 March 2024 (inclusive) → 31 - 10 + 1 = 22 days.
  2. Step 2: Add April days

    From 1 April 2024 to 10 April 2024 (inclusive) → 10 days.
  3. Step 3: Total days

    22 + 10 = 32 days.
  4. Final Answer:

    32 → Option C
  5. Quick Check:

    March remaining = 22 days, April 1-10 = 10 days → total 32 ✅
Hint: For inclusive spans across months, add remaining days in the first month and all days in the next month.
Common Mistakes: Using 31 days (same-date rule) without including both endpoints.
3. Find the number of days between 5th February 2020 and 5th March 2020 (inclusive).
easy
A. 28
B. 29
C. 30
D. 31

Solution

  1. Step 1: Note leap year

    2020 is a leap year, so February has 29 days.
  2. Step 2: Count inclusive days

    From 5 Feb to 29 Feb inclusive = 29 - 5 + 1 = 25 days. Add Mar 1-Mar 5 inclusive = 5 days. Total = 25 + 5 = 30 days.
  3. Final Answer:

    30 → Option C
  4. Quick Check:

    Leap-year Feb contributes 25 days from 5th to 29th, plus 5 days in March → 30 ✅
Hint: Compute remaining days in first month (inclusive) then add days in next month (inclusive).
Common Mistakes: Using 28 for Feb in a leap year or forgetting inclusive counting.
4. How many days are there from 1st June 2023 to 31st August 2023 (inclusive)?
medium
A. 91
B. 92
C. 93
D. 94

Solution

  1. Step 1: Sum full months

    June = 30 days, July = 31 days, August = 31 days.
  2. Step 2: Add totals (inclusive of all days)

    30 + 31 + 31 = 92 days (since we include all days from 1 June through 31 August).
  3. Final Answer:

    92 → Option B
  4. Quick Check:

    Three full months (30 + 31 + 31) = 92 ✅
Hint: When range covers full months starting 1st to last day, sum month lengths directly.
Common Mistakes: Adding an extra day for inclusivity when the range already covers full months.
5. Find the number of days between 25th December 2022 and 5th January 2023 (inclusive).
medium
A. 10
B. 11
C. 12
D. 13

Solution

  1. Step 1: Count days in December (inclusive)

    From 25 Dec to 31 Dec inclusive = 31 - 25 + 1 = 7 days.
  2. Step 2: Count days in January (inclusive)

    1 Jan to 5 Jan inclusive = 5 days.
  3. Step 3: Total

    7 + 5 = 12 days.
  4. Final Answer:

    12 → Option C
  5. Quick Check:

    25 Dec → 5 Jan inclusive spans 12 consecutive calendar days ✅
Hint: Add remaining days of first month (inclusive) + days in next month (inclusive).
Common Mistakes: Double-counting an extra day when switching months or incorrect inclusivity handling.

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes