Convert datetime to string
214 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Adam Danz
il 12 Ott 2022
dt = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss')
dtstr = string(dt)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Type Conversion 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!