Change numbers from .tex file into dateitme format

3 visualizaciones (últimos 30 días)
simen ommundsen
simen ommundsen el 29 de Abr. de 2019
Comentada: Star Strider el 29 de Abr. de 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.

Respuesta aceptada

Star Strider
Star Strider el 29 de Abr. de 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.
  2 comentarios
simen ommundsen
simen ommundsen el 29 de Abr. de 2019
Thanks this worked!
Star Strider
Star Strider el 29 de Abr. de 2019
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by