%% Find Year, Month, and Day Numbers of Dates

t = datetime(2013,05,31):calmonths(3):datetime(2014,06,15)

%

[y,m,d] = ymd(t)

% ymd returns the year, month, and day values in separate arrays.
% Copyright 2015 The MathWorks, Inc.