Days Between Dates (Days Between 3.0 V2)

Given two dates date1 and date2, each represented by integers year, month, day, and guaranteed that date1 is earlier than date2, compute the number of days between them (i.e., `date2 - date1...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: