read time in HH:mm format from excel
9 views (last 30 days)
Show older comments
I have to read a column from excel file named Time ,the data in that column is in HH:mm format i need to read it and save it and display it in same format
0 Comments
Answers (1)
Walter Roberson
on 18 Aug 2023
filename = 'AppropriateFileName.xlsx';
opts = detectImportOptions(filename);
opts = setvaropts(opts, {'Time'}, 'Type', 'duration', 'InputFormat', 'hh:mm', 'DurationFormat', 'hh:mm');
T = readtable(filename, opts);
0 Comments
See Also
Categories
Find more on Spreadsheets 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!