I have an entry "2017-10-26 06-PM" How can I transform this entry into a datetime format that Matlab can understand?

 채택된 답변

Sean de Wolski
Sean de Wolski 2018년 6월 14일
편집: Sean de Wolski 2018년 6월 14일

0 개 추천

datetime("2017-10-26 06-PM",'InputFormat','yyyy-MM-dd hh-aa')

댓글 수: 3

alpedhuez
alpedhuez 2018년 6월 14일
Thank you. I have a table A with the entries of the first column are of the format "2017-10-26 06-PM." How can I transform this first column into datetime format?
exactly the same way:
yourtable.columnname = datetime(yourtable.columname, 'InputFormat', 'yyyy-MM-dd hh-aa')
alpedhuez
alpedhuez 2018년 6월 14일
Great help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

제품

태그

질문:

2018년 6월 14일

댓글:

2018년 6월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by