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

t = [datetime('yesterday');datetime('today');datetime('tomorrow')]
d = day(t)

% Copyright 2015 The MathWorks, Inc.