www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ConvertDateStringfromCustomFormatExample.m

    %% 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)