How to reverse datenum?
Ältere Kommentare anzeigen
SOS: How to convert serial date number back to date, in the format of mm/dd/yyyy?
Thanks SO MUCH!!
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 16 Jun. 2011
datestr(serialnum, 'MM/DD/YYYY')
2 Kommentare
Zoe
am 16 Jun. 2011
George Scott
am 17 Jul. 2018
'mm/dd/YYYY' ('MM' is a minutes format, not months)
Peter Perkins
am 3 Aug. 2018
0 Stimmen
The longer answer is, Don't use datenum and datestr at all if you can avoid it. Use datetime, no conversion back and forth between number and text necessary.
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!