%% Determine If Date Occurs During Weekend

t = datetime(2014,5,2:5,'Format','eee dd-MMM-yyyy')

%

tf = isweekend(t)

% May 3 and May 4, 2014 are days that fall on a weekend.
% Copyright 2015 The MathWorks, Inc.