Change numbers from .tex file into dateitme format

3 Ansichten (letzte 30 Tage)
simen ommundsen
simen ommundsen am 29 Apr. 2019
Kommentiert: Star Strider am 29 Apr. 2019
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.

Akzeptierte Antwort

Star Strider
Star Strider am 29 Apr. 2019
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.

Weitere Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by