Today's day and date will be given to you. By utilising that you need to find the day of the old date. (Date will be in DD/MM/YYYY format, Consider leap years also).
Example:
TodayDate='20/11/2013'
Today='Monday'
UnknownDay_Date ='19/11/2013'
So here you need to provide output as UnknownDay='Sunday'
Solve the problem in the hypothetical world where 16 April 2019 happens on Saturday instead of Tuesday.
Note: It is not like using "datestr" and finding result. You need to calculate the number of inbetween days and then find the answer.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers56
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6693 Solvers
-
4491 Solvers
-
Which values occur exactly three times?
5239 Solvers
-
Get an array of month-ends in a date range
117 Solvers
-
Circular Primes (based on Project Euler, problem 35)
651 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I think the 22/10/1901 was a Tuesday... :-/
http://www.infoplease.com/calendar.php?month=10&year=1901&submit=Go
Its not like using datestr and solving this. You need to calculate the days and divide it by 7, take the reminder and increment that many days to present day.
Problem statement would be much better with an additional sentence:
"Solve the problem in the hypothetical world where 16 April 2019 happens on Saturday instead of Tuesday."
Otherwise this is just lame.