Converting Cell into Datetime; InputFormat Problem

1 回表示 (過去 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 Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by