Convert string into date
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Happy PhD
 il 30 Ago 2023
  
    
    
    
    
    Commentato: Star Strider
      
      
 il 30 Ago 2023
            I am trying to convert "145601" into "14:56:01". How can I do this in a for loop?
0 Commenti
Risposta accettata
  Star Strider
      
      
 il 30 Ago 2023
        str = "145601"
DT = datetime(str, 'InputFormat',"HHmmss", 'Format','HH:mm:ss')
.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Dates and Time in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!