CSV Input date format
Mostrar comentarios más antiguos
Hello,
I'm trying to import a date string such as '01/10/2018 16:09:26,934';
However when doing the following:
DateString = '01/10/2018 16:09:26,934';
formatIn = 'MM/dd/yyyy HH:mm:SS,sss';
datetime(DateString,'InputFormat',formatIn)
It returns the following error:
Unable to parse '01/10/2018 16:09:26,934' as a date/time using the format 'MM/dd/yyyy HH:mm:SS,sss'.
Any ideas?
2 comentarios
Jan
el 10 de En. de 2018
Whenever you mention, that you get an error, post a copy of the complete message. It is easier to fix a problem than to guess the error.
Rodrigo Alvarez Hernandez
el 10 de En. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Time Series Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!