Convert string into date
5 ビュー (過去 30 日間)
古いコメントを表示
I am trying to convert "145601" into "14:56:01". How can I do this in a for loop?
0 件のコメント
採用された回答
Star Strider
2023 年 8 月 30 日
str = "145601"
DT = datetime(str, 'InputFormat',"HHmmss", 'Format','HH:mm:ss')
.
2 件のコメント
その他の回答 (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!