Convert '16-Mär-2023 13:51:13' to a number
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Stephen23
2023-3-16
编辑:Stephen23
2023-3-16
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!