%% Start and End of Next Month
% Create a datetime value.

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.

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

% Copyright 2015-2021 The MathWorks, Inc.