%% Convert Multiple Date Strings to Date Vectors
% Pass multiple dates as character vectors in a cell array. All input dates must use the same format.

DateString = {'09/16/2007';'05/14/1996';'11/29/2010'};
formatIn = 'mm/dd/yyyy';
datevec(DateString,formatIn)

% Copyright 2012 The MathWorks, Inc.