MATLAB: Converting Date and Time to Number

convertdateexceltime

Hi guys,
I have read in a column of dates and times from an excel document using xlsread and now have a cell of dates in the form 'yyyy-mm-dd hh:mm:ss AM/PM'.
I would like to extract from this cell a vector with the time in the form hhmm. How might I go about doing this?
Thanks,
Justin

Best Answer

See datenum, datestr and their friends.