%% Shift Current Date to Next Month
% Define the current date.

t = datetime('today')

%
% Shift the date to the start of the next month.

t2 = dateshift(t,'start','month','next')

%
% Shift the date to the end of the next month.

t2 = dateshift(t,'end','month','next')

% Copyright 2015 The MathWorks, Inc.