I would like to convert a date in the format of, for e.g., 02 September 2004, to a datenumber. But this format is not a standard Matlab format. Does anyone know how I could do this please?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Michel Nieuwoudt
el 20 de Jun. de 2016
Comentada: Michel Nieuwoudt
el 20 de Jun. de 2016
I would like to convert a date in the format of, for e.g., 02 September 2004, to a datenumber. But this format is not a standard Matlab format. Does anyone know how I could do this please?
0 comentarios
Respuesta aceptada
dpb
el 20 de Jun. de 2016
Read the doc and use the named parameter 'InputFormat'
t=datetime(DateStrings,'InputFormat',infmt); % interpret DateStrings using the format specified by infmt.
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!