How to reverse datenum?
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Zoe
am 16 Jun. 2011
Beantwortet: Peter Perkins
am 3 Aug. 2018
SOS: How to convert serial date number back to date, in the format of mm/dd/yyyy?
Thanks SO MUCH!!
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 16 Jun. 2011
datevec or datestr
doc datevec
doc datestr
%For future reference: since you're using datenum, the conversions are probably related to it; if you look at the bottom of:
doc datenum
it has the inverses.
Weitere Antworten (2)
Peter Perkins
am 3 Aug. 2018
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!