Transform into a Matlab datetime format
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
alpedhuez
le 14 Juin 2018
Commenté : alpedhuez
le 14 Juin 2018
I have an entry "2017-10-26 06-PM" How can I transform this entry into a datetime format that Matlab can understand?
0 commentaires
Réponse acceptée
Sean de Wolski
le 14 Juin 2018
Modifié(e) : Sean de Wolski
le 14 Juin 2018
datetime("2017-10-26 06-PM",'InputFormat','yyyy-MM-dd hh-aa')
3 commentaires
Guillaume
le 14 Juin 2018
exactly the same way:
yourtable.columnname = datetime(yourtable.columname, 'InputFormat', 'yyyy-MM-dd hh-aa')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!