Convert datetime to string
    64 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ali razi
 el 12 de Oct. de 2022
  
    
    
    
    
    Respondida: Adam Danz
    
      
 el 12 de Oct. de 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 comentarios
Respuesta aceptada
  Adam Danz
    
      
 el 12 de Oct. de 2022
        dt = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss')
dtstr = string(dt)
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Dates and Time 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!

