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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Michel Nieuwoudt
am 20 Jun. 2016
Kommentiert: Michel Nieuwoudt
am 20 Jun. 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 Kommentare
Akzeptierte Antwort
dpb
am 20 Jun. 2016
Read the doc and use the named parameter 'InputFormat'
t=datetime(DateStrings,'InputFormat',infmt); % interpret DateStrings using the format specified by infmt.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!