get month of date from string
Afficher commentaires plus anciens
I used this code, for exporting the month of years, but it doesn't work for all of my dates, and return NAN for some dates... what is the problem?
if true
mnth= month(datetime(date,'InputFormat','yyyy/MM/dd')) end
2 commentaires
KSSV
le 25 Oct 2018
YOur date variable at the end is 0..so it is NaN.
Nooshin Mahmoodi
le 25 Oct 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Calendar dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!