get month of date from string
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 25 de Oct. de 2018
YOur date variable at the end is 0..so it is NaN.
Nooshin Mahmoodi
el 25 de Oct. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Calendar en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!