Reformatting Dates
Ältere Kommentare anzeigen
Hi, I have dates in the format 12/01/2011. Is there a way to reformat these dates by removing the forward slashes? For example, I want 12/01/2011 to become 12012011. Thanks.
Akzeptierte Antwort
Weitere Antworten (1)
Friedrich
am 27 Dez. 2011
Hi,
you can use regexprep for that:
>> a = '12/01/2011'
a =
12/01/2011
>> regexprep(a,'/','')
ans =
12012011
1 Kommentar
Syed Abbas
am 27 Dez. 2011
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!