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!