How to import Date&Time data
1 view (last 30 days)
Show older comments
Greetings.
I'm trying to import via Import Data wizard such kind of data:
20130826;10:01:00;133.7700000;133.9600000;133.6200000;133.7300000;161810
20130826;10:02:00;133.7300000;133.8500000;133.6500000;133.6500000;75480
20130826;10:03:00;133.6700000;133.7600000;133.6500000;133.7500000;33790
20130826;10:04:00;133.7000000;133.7500000;133.6500000;133.6600000;14330
To import Time column i use Custom date format HH:MM:SS
but cell 10:01:00 after import looks like 35235.416666667
Date column 20130826 via custom format yyyymmdd i get as 735472
Please advise, how to import such data correctly? Thanks
0 Comments
Accepted Answer
Azzi Abdelmalek
on 27 Aug 2013
Edited: Azzi Abdelmalek
on 27 Aug 2013
a=735472;
% to retrieve you date
datestr(a,'yyyy-mm-dd')
b=35235.416666667;
datestr(b,'HH:MM:SS')
0 Comments
More Answers (0)
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!