Number of Days Between Two Dates
Write a program to count the number of days between two dates.
The two dates are given as strings, their format is YYYY-MM-DD
as shown in the examples.
Example 1:
Example 2:
Constraints:
The given dates are valid dates between the years
1971
and2100
.
Last updated