www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/DetermineFutureDateExample.m

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

% Copyright 2015 The MathWorks, Inc.

t = datetime('today')
%%
t2 = dateshift(t,'end','week',5)