Problem 720. Find number of days
The input is two date in string format (dd-mm-yyyy), Find out the number of days between these two dates.
Example:
input: '15-jan-2000' '24-may-2012'
(if today is 24-may-2012)
output: 4509
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Ned Gulley
on 25 May 2012
I went ahead and updated the test.
vaibhav hosur
on 20 Aug 2015
daysact(x1,x2) not working
Szász Botond
on 19 Apr 2021
Is there a mistake in the problem or the site?
https://www.timeanddate.com/date/durationresult.html?y1=1000&m1=1&d1=15&y2=2012&m2=5&d2=24
Solution Comments
Show commentsProblem Recent Solvers203
Suggested Problems
-
6676 Solvers
-
225 Solvers
-
Test if a Number is a Palindrome without using any String Operations
237 Solvers
-
Back to basics 19 - character types
265 Solvers
-
Celsius to Fahrenheit converter
628 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!