%% Determine Future Date by Using Numeric Rule
% Find the date that falls at the end of the fifth week from today.

t = datetime('today');
t.Format = 'eeee, dd MMM yyyy'

%

t2 = dateshift(t,'end','week',5)

% Copyright 2015-2021 The MathWorks, Inc.