Convert datetime to string
533 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali razi
am 12 Okt. 2022
Beantwortet: Adam Danz
am 12 Okt. 2022
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 Kommentare
Akzeptierte Antwort
Adam Danz
am 12 Okt. 2022
dt = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss')
dtstr = string(dt)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!