Converting to different date format

 Risposta accettata

try use
regexprep('2012-09-01','-0','-')

Più risposte (1)

d='2009-09-01'
c=regexp(d,'-','split')';
e=[c{1} '-' num2str(str2num(c{2})) '-' num2str(str2num(c{3}))]

Categorie

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by