Converting Cell into Datetime; InputFormat Problem

조회 수: 2 (최근 30일)
Philipp Henschel
Philipp Henschel 2018년 1월 30일
답변: Astarag Chattopadhyay 2018년 2월 5일
Im trying to convert date & time out of a cell array to a datetime array. The cell looks like this: 2018-01-30 14:48:30+01:00. I tryied to specify the InputFormat as the ErrorMessage suggested using
'InputFormat','yyyy-MM-dd hh:mm:ssXXX
the XXX or ZZZ I found in the Documentation, still receiving an ErrorMessage. The EM was referring to the TimeZone offset. Long story short didn't work either. Any Ideas how to convert? Thanks in advance!
Philipp

채택된 답변

Astarag Chattopadhyay
Astarag Chattopadhyay 2018년 2월 5일
Hi,
You can follow this MATLAB Answers post to accomplish it.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Array Geometries and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by