%% Convert Text with Multiple Dates to Date Numbers
% Pass several 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';
datenum(DateString,formatIn)

% Copyright 2012 The MathWorks, Inc.