MATLAB: Converting date and time ind text format to a number

date time text num conversion

I currently have a lot of measurements data, which has been logged in a .csv file with date and time ind the format: "dd/mm/yyyy hh:mm:ss". I want to sort the data by date and time, and therefore i would like to store the date/time in a variable like A = [date,time] in the format date = ddmmyyyy and time = hhmmss. The date/time data is currently stored in a very large collum vector in a string format!
How can i do that?

Best Answer

doc datenum
doc datestr
Related Question