function tf = similarDate(date1, date2)
%SIMILARDATE Are two dates similar?
%   tf = similarDate(date1, date2) returns true if
%   the two dates date1 and date2 are similar.
%   date1 and date2 are both vectors of length 2
%   where the elements represent a numeric date
%   (either [day, month] or [month, day]).
%
%   Two dates are similar if they can be interpreted
%   as being the same date.

if date1(1) == date2(1) && date1(2) == date2(2)
    tf = true;
elseif date1(1) == date2(2) && date1(2) == date2(1)
    tf = true;
else
    tf = false;
end
