Convert datetime to string
182 ビュー (過去 30 日間)
古いコメントを表示
How can I convert
datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss')
to a string with this structure: 12-Oct-2022_18:12:17
0 件のコメント
採用された回答
Adam Danz
2022 年 10 月 12 日
dt = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss')
dtstr = string(dt)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!