Convert '16-Mär-2023 13:51:13' to a number
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Why is the following command not working:
convertTo(datetime('16-Mär-2023 13:51:13','InputFormat','dd-mmm-yyyy HH:MM:ss','Locale','de_CH'),'datenum')
Thanks for your help!
Daniel
2 commentaires
Stephen23
le 16 Mar 2023
Modifié(e) : Stephen23
le 16 Mar 2023
It looks like you might be trying to convert the DATE field returned by DIR, in which case this might be useful:
That date does not comply with the expected month abbreviations:
which refers to this table: https://www.loc.gov/aba/pcc/conser/conserhold/Mosabbr.html
Réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!