How to reverse datenum?
Afficher commentaires plus anciens
SOS: How to convert serial date number back to date, in the format of mm/dd/yyyy?
Thanks SO MUCH!!
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 16 Juin 2011
datestr(serialnum, 'MM/DD/YYYY')
2 commentaires
Zoe
le 16 Juin 2011
George Scott
le 17 Juil 2018
'mm/dd/YYYY' ('MM' is a minutes format, not months)
Peter Perkins
le 3 Août 2018
0 votes
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.
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!