Date format 03mar2013

Hi,
I hope all is well. How can I read dates such as 03mar2013 and transform them to matlab datenumber? I hav ethese dates in excel and every import date option that i used resulted nans.

4 件のコメント

Walter Roberson
Walter Roberson 2019 年 5 月 13 日
Are you sure you need datenum? We recommend datetime instead.
Wesso
Wesso 2019 年 5 月 13 日
the important thing is so bring it to matlab while avoiding NaNs. Not sure though why datetime is better than datenum (I am used to work with datenum) . Nevertheless, I think datetime will work as well.
Walter Roberson
Walter Roberson 2019 年 5 月 13 日
datetime('03mar2013', 'inputformat', 'ddMMMyyyy')
Wesso
Wesso 2019 年 5 月 15 日
thanks. it works perfectly well

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2019 年 5 月 13 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by