Convert string into date
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Happy PhD
le 30 Août 2023
Commenté : Star Strider
le 30 Août 2023
I am trying to convert "145601" into "14:56:01". How can I do this in a for loop?
0 commentaires
Réponse acceptée
Star Strider
le 30 Août 2023
str = "145601"
DT = datetime(str, 'InputFormat',"HHmmss", 'Format','HH:mm:ss')
.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!