get month of date from string
이전 댓글 표시
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
KSSV
2018년 10월 25일
YOur date variable at the end is 0..so it is NaN.
Nooshin Mahmoodi
2018년 10월 25일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!