Converting to different date format
Mostra commenti meno recenti
Hi,
I would like to convert this date:
2012-09-01
to
2012-9-1
How can I do this?
Thanks,
Risposta accettata
Più risposte (1)
Azzi Abdelmalek
il 4 Set 2012
d='2009-09-01'
c=regexp(d,'-','split')';
e=[c{1} '-' num2str(str2num(c{2})) '-' num2str(str2num(c{3}))]
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!