datetime InputFormat error in R2021b
古いコメントを表示
Hello,
I'm just trying to specify an input format for datetime(). Even running exemple code i get an error:
DateStrings = {'2014-05-26';'2014-08-03'};
t = datetime(DateStrings,'InputFormat','yyyy-MM-dd')
I get the error:
"Array formation and parentheses-style indexing with objects of class 'timerange' is not allowed. Use objects of class 'timerange' only as scalars or use a cell array."
My format case would be for a string as: '20050101_0010'
for which format would be: 'yyyyMMdd_HHmm'. I get the same error.
Does anyone know what's wrong?
Thanks in advance.
1 件のコメント
Pol Cardona Rubio
2022 年 4 月 5 日
編集済み: Pol Cardona Rubio
2022 年 4 月 5 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!