I would like to convert a date in the format of, for e.g., 02 September 2004, to a datenumber. But this format is not a standard Matlab format. Does anyone know how I could do this please?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Michel Nieuwoudt
le 20 Juin 2016
Commenté : Michel Nieuwoudt
le 20 Juin 2016
I would like to convert a date in the format of, for e.g., 02 September 2004, to a datenumber. But this format is not a standard Matlab format. Does anyone know how I could do this please?
0 commentaires
Réponse acceptée
dpb
le 20 Juin 2016
Read the doc and use the named parameter 'InputFormat'
t=datetime(DateStrings,'InputFormat',infmt); % interpret DateStrings using the format specified by infmt.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!