Cody

Solution 484707

Submitted on 8 Aug 2014 by James
  • Size: 31
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% % mm-dd-yyyy format

2   Pass
%% assert(isequal(birthDay('7-20-2014'),2025));

ans = 2014 7 20 0 0 0 ans = 2025

3   Pass
%% assert(isequal(birthDay('5-6-2014'),2025));

ans = 2014 5 6 0 0 0 ans = 2025

4   Pass
%% assert(isequal(birthDay('1-1-2013'),2019));

ans = 2013 1 1 0 0 0 ans = 2019

5   Pass
%% assert(isequal(birthDay('5-1-2010'),2021));

ans = 2010 5 1 0 0 0 ans = 2021

6   Pass
%% assert(isequal(birthDay('11-4-1989'),1995));

ans = 1989 11 4 0 0 0 ans = 1995