How to reverse datenum?
Mostra commenti meno recenti
SOS: How to convert serial date number back to date, in the format of mm/dd/yyyy?
Thanks SO MUCH!!
Risposta accettata
Più risposte (2)
Walter Roberson
il 16 Giu 2011
datestr(serialnum, 'MM/DD/YYYY')
2 Commenti
Zoe
il 16 Giu 2011
George Scott
il 17 Lug 2018
'mm/dd/YYYY' ('MM' is a minutes format, not months)
Peter Perkins
il 3 Ago 2018
0 voti
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.
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!