Converting date string to number
Ältere Kommentare anzeigen
I have a vector of the following format 01-Jul-1980 00:00:00 how can I convert to a matlab date number?
1 Kommentar
Danielle Leblance
am 11 Feb. 2018
Antworten (3)
Danielle Leblance
am 11 Feb. 2018
0 Stimmen
Jan
am 11 Feb. 2018
S = '01-Jul-1980 00:00:00';
datenum(S) % Old
datetime(S) % Modern
Walter Roberson
am 11 Feb. 2018
You have a datetime array. You can convert it to serial datenum using
datenum(issuedate)
Note that this is typically not required any more, but can be required for some plotting reasons from R2013b to R2015b.
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!