Way to import time series date string as mm-dd-yyyy
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
My data is in the format of mm-dd-yyyy hh:mm:ss however it seems like the time series import tool will only import dates & time data if the format is in dd-mmm-yyyy hh:mm:ss
1 Kommentar
Jan
am 20 Sep. 2011
What exactly is your question? Can you post the type of the available input and wanted output?
Akzeptierte Antwort
Jan
am 20 Sep. 2011
You can convert the data manually:
S1 = '07-12-2011 13:14:15'
D = datenum(S1, 'mm-dd-yyyy HH:MM:SS');
S2 = datestr(D, 'dd-mmm-yyyy HH:MM:SS')
0 Kommentare
Weitere Antworten (2)
Chris
am 20 Sep. 2011
2 Kommentare
Fangjun Jiang
am 20 Sep. 2011
Time series supports all the data format. What tsimport tool are you using?
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!