datetime format '2018-08-01T20:05:00.000Z' having problems
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Duy Doan
el 15 de Ag. de 2018
Comentada: Duy Doan
el 15 de Ag. de 2018
Attempting to use dateime function on a list of date times in the format: '2018-08-01T20:05:00.000Z', but I am having trouble setting up the date format so that MATLAB can convert it as such. I have tried 'yyyy-MM-dd''T'HH:mm:ss.SSS' but that doesn't seem to work. I am not sure how to address this issue.
0 comentarios
Respuesta aceptada
Kojiro Saito
el 15 de Ag. de 2018
How about this?
dt = '2018-08-01T20:05:00.000Z';
dtTime = datetime(dt, 'InputFormat', 'yyyy-MM-dd''T''HH:mm:ss.SSS''Z')
Más respuestas (0)
Ver también
Categorías
Más información sobre Dates and Time en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!