Change numbers from .tex file into dateitme format

3 ビュー (過去 30 日間)
simen ommundsen
simen ommundsen 2019 年 4 月 29 日
コメント済み: Star Strider 2019 年 4 月 29 日
Hello,
I have these datevalues in a .tex file that is shown in the picture.
I am wondering if anyone can help me getting these into Datetime format.

採用された回答

Star Strider
Star Strider 2019 年 4 月 29 日
My version of MATLAB cannot import images of data.
For the first one, this works:
d = datetime('030419091720', 'InputFormat','MMddyyHHmmss');
producing:
d =
datetime
04-Mar-2019 09:17:20
I would read them in as strings, since you need the leading zero for this to work correctly.
  2 件のコメント
simen ommundsen
simen ommundsen 2019 年 4 月 29 日
Thanks this worked!
Star Strider
Star Strider 2019 年 4 月 29 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by