Datetime problem of converting string
조회 수: 11 (최근 30일)
이전 댓글 표시
Hello. Im trying to convert string of dates to datetime and recieving strange error:
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd hh:mm:ss');
Error using datetime (line 636) Unable to convert '2019/09/05 19:02:11' to datetime using the format 'yyyy/MM/dd hh:mm:ss'.
Help me please
댓글 수: 0
채택된 답변
JESUS DAVID ARIZA ROYETH
2020년 2월 15일
hh is uppercase
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd HH:mm:ss')
추가 답변 (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!