fail to convert datetime with pm string
Mostra commenti meno recenti
Hi:
I successfully convert string '2022-09-30 10-01' to datetime using command:
datetime('2022-09-30 10-01','InputFormat','yyyy-MM-dd hh-mm')
but string '2022-09-30 16-01' failed, I expect it return 4:01 pm
is there any mistake with my command?
Thanks!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!