Datetime problem of converting string
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Eugene Pashinov
le 15 Fév 2020
Commenté : Eugene Pashinov
le 15 Fév 2020
Hello. Im trying to convert string of dates to datetime and recieving strange error:
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd hh:mm:ss');
Error using datetime (line 636) Unable to convert '2019/09/05 19:02:11' to datetime using the format 'yyyy/MM/dd hh:mm:ss'.
Help me please
0 commentaires
Réponse acceptée
JESUS DAVID ARIZA ROYETH
le 15 Fév 2020
hh is uppercase
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd HH:mm:ss')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Conversion dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!