How to reverse datenum?
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Zoe
le 16 Juin 2011
Réponse apportée : Peter Perkins
le 3 Août 2018
SOS: How to convert serial date number back to date, in the format of mm/dd/yyyy?
Thanks SO MUCH!!
0 commentaires
Réponse acceptée
Sean de Wolski
le 16 Juin 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.
Plus de réponses (2)
Peter Perkins
le 3 Août 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 commentaires
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!