%% Compare Dates
% Create a vector of dates.

A = datetime([2014,05,01;2014,05,31])

%
% Find the dates that occur before May 10, 2014.

A(A < '2014-05-10')

% Copyright 2012 The MathWorks, Inc.