How to reverse datenum?
Mostrar comentarios más antiguos
SOS: How to convert serial date number back to date, in the format of mm/dd/yyyy?
Thanks SO MUCH!!
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 16 de Jun. de 2011
datestr(serialnum, 'MM/DD/YYYY')
2 comentarios
Zoe
el 16 de Jun. de 2011
George Scott
el 17 de Jul. de 2018
'mm/dd/YYYY' ('MM' is a minutes format, not months)
Peter Perkins
el 3 de Ag. de 2018
0 votos
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.
Categorías
Más información sobre Dates and Time en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!