I work with csv and must subtract 2 cells with the following date format dd.MM.yyyy HH:mm:ss
. I need to extract only the seconds.
Timestamp
is a column and I attempted:
data1 = Timestamp(1) ;
data2 = Timstamp(2) ; % returns error
class(data1); % returns cell
data1 - data2 % returns error
How can I convert the cells into a number which I can subtract?