The input is two date in string format (dd-mm-yyyy)
find out the number of days between these two dates.
input: '15-jan-2000' '24-may-2012'
(if today is 24-may-2012)
Answers are wrong. They ignore leap days. There are four from 15-Jan-2000 thru May 2012. function datenum provides correct answer
I agree with Richard. I also think that the first two out of the three test cases are wrong.
I also agree with the above comments
as do i
I went ahead and updated the test.
daysact(x1,x2) not working
function ans = countDays(x1,x2)
this working my system but test suit fails
Omit columns averages from a matrix
Wrapping the Tower of Pisa
Set some matrix elements to zero
Create matrix of replicated elements
Convert from Base 10 to base 5
Calculate the area of a triangle between three points
Rotate a Matrix by 90 degrees
Replace Vector Elements
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office