%% Extract Month Number from Dates
% Extract the month numbers from an array of dates.

t = datetime(2014,05,31):caldays(35):datetime(2014,10,15)

%

m = month(t)

% Copyright 2015 The MathWorks, Inc.