MATLAB: Convert date to datenum import from excel

importing excel dataMATLAB

hello
I want to import a simple excel file to matlab and convert the column with dates from text to numeric values. The problem is that the rule convert does not show up as an alternativ. I can only replace things. Would be very glad if someone could help.

Best Answer

I agree that readtable() is the better option but if you decide to stick with the import tool, here's an idea.
In the dropdown menu under your variable name 'dag' where it currently says "Number" in your screenshot, select a date and time option. This will convert your timestamps to datetime format. After importing, you can use datenum() to convert them to double if desired.
Here's a screen shot with a different data set.