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 (최근 30일)
이전 댓글 표시
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
채택된 답변
dpb
2016년 6월 20일
Read the doc and use the named parameter 'InputFormat'
t=datetime(DateStrings,'InputFormat',infmt); % interpret DateStrings using the format specified by infmt.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!