If a date is written in purely numeric format some dates can be confusing, if we don't know the date format used. For example, "05-02-1998", may mean either "May 02, 1998" or "February 05, 1998". However, since there are only 12 months in a year, not all dates are confusing. "23-10-1969" is clearly "October 23, 1969".
Write a program that will count the number of days between two dates (inclusive) that are NOT confusing on either "dd-mm-yyyy" or "mm-dd-yyyy" formats.
To avoid further confusion you are given the input in "yyyy-mm-dd" date format.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers23
Suggested Problems
-
2176 Solvers
-
Arrange Vector in descending order
13176 Solvers
-
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
249 Solvers
-
Create a Multiplication table matrix...
690 Solvers
-
Is this triangle right-angled?
6531 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Lol that was fun :)
Thanks Nikolas...
Ok, I figure it out which day is not confusing between the confusing ones.