Way to import time series date string as mm-dd-yyyy
1 view (last 30 days)
Show older comments
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 Comment
Jan
on 20 Sep 2011
What exactly is your question? Can you post the type of the available input and wanted output?
Accepted Answer
Jan
on 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 Comments
More Answers (2)
Chris
on 20 Sep 2011
2 Comments
Fangjun Jiang
on 20 Sep 2011
Time series supports all the data format. What tsimport tool are you using?
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!