from cell to datetime
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sim
el 8 de Mayo de 2023
Comentada: Star Strider
el 8 de Mayo de 2023
A silly question: where is the error here below?
a={'Monday, 03-Jul-2017 15:00:00'};
datetime(a,'InputFormat','dddd, dd-MMM-yyyy HH:mm:ss')
0 comentarios
Respuesta aceptada
Star Strider
el 8 de Mayo de 2023
Use 'eeee' for the full name of the day —
a={'Monday, 03-Jul-2017 15:00:00'};
datetime(a,'InputFormat','eeee, dd-MMM-yyyy HH:mm:ss', 'Format','eeee, dd-MMM-yyyy HH:mm:ss')
(Added: optional 'Format' string.)
.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Calendar 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!