I am trying to read a test table from an excel sheet , my excel sheet looks something like this
Building location start_date start_time end_date end_time number
Test_Building 1.08 12.06.2016 19:00 12.06.2016 19:30 7
now when i read this as a table in matlab by using :
R = readtable('testtable.xlsx','ReadVariableNames',1)
I get something like
R =
Building location start_date start_time end_date end_time number
_______________ ________ ____________ ____________ ____________ ________ ______
'Test_Building' 1.08 '12.06.2016' 0.79167 '12.06.2016' 0.8125 7
Now if you notice the start_time
and end_time
are retrieved in datenum
format instead of a datestr
how can I save this time such that when I retrieved these variables they are in datestr format ?