Convert string into date
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Happy PhD
am 30 Aug. 2023
Kommentiert: Star Strider
am 30 Aug. 2023
I am trying to convert "145601" into "14:56:01". How can I do this in a for loop?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 30 Aug. 2023
str = "145601"
DT = datetime(str, 'InputFormat',"HHmmss", 'Format','HH:mm:ss')
.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings 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!