Convert string into date
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Happy PhD
el 30 de Ag. de 2023
Comentada: Star Strider
el 30 de Ag. de 2023
I am trying to convert "145601" into "14:56:01". How can I do this in a for loop?
0 comentarios
Respuesta aceptada
Star Strider
el 30 de Ag. de 2023
str = "145601"
DT = datetime(str, 'InputFormat',"HHmmss", 'Format','HH:mm:ss')
.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!