Tap here to switch tabs
Problem
Submissions

Problem: Number of Days Between Two Dates

Number of Days Between Two Dates asks you to compare two valid date strings and return the total number of calendar days separating them, regardless of their order.

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

Number of Days Between Two Dates asks you to compare two valid date strings and return the total number of calendar days separating them, regardless of their order.

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.