Date and Time from Text with Literal Characters, Part 2

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 12월 6일
댓글: alpedhuez 2020년 12월 7일
I now have a table
Date Visitors
'Jan 1 2020' 100
'Jan 2 2020' 50
I want Matlab to convert the string 'Jan 1 2020' into "date" format.
talks about using datetime to convert "strings" into "date" format. But does not seem to cover this case. Please advise.

채택된 답변

Walter Roberson
Walter Roberson 2020년 12월 6일
datetime(YourTable.Date, 'InputFormat', 'MMM dd uuuu')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by