Last updated
Last updated
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
and 2100
.