How long ago?

Given two dates, return the difference between the two.

Unsolved

The program must take input as two comma-separated dates in the form YYYY-MM-DD, and print the number of days that has passed since the second date as if today was the first date (if the second date would be in the future, output a negative number). Assume both dates are in the Gregorian calendar.


Inputs

value1

A comma separated separated dates in the form YYYY-MM-DD. 

Sample Test Cases

Sample Input 1

value1: 2015-12-03,2013-12-03
output: 730

Test Results

Login/Register

At the moment only Discord login is supported.

Login with Discord