%% Convert Date String from Custom Format
% Call datenum inside of datestr to specify the format of the input text representing a date.

formatOut = 'dd mmm yyyy';
datestr(datenum('16-04-55','dd-mm-yy',1900),formatOut)

% Copyright 2012 The MathWorks, Inc.