Convert '16-Mär-2023 13:51:13' to a number
2 views (last 30 days)
Show older comments
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 Comments
Stephen23
on 16 Mar 2023
Edited: Stephen23
on 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
Answers (0)
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!