Tap here to switch tabs
Problem
Submissions

Problem: Number of Days Between Two Dates

Try to solve the Number of Days Between Two Dates problem.

Statement

Given two date strings date1 and date2, return the total number of days between the two dates.

Constraints:

  • The given dates are valid dates between the years 19711971 and 21002100.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Number of Days Between Two Dates

Try to solve the Number of Days Between Two Dates problem.

Statement

Given two date strings date1 and date2, return the total number of days between the two dates.

Constraints:

  • The given dates are valid dates between the years 19711971 and 21002100.