MATLAB: Converting yyyymmdd date to matlab date number

date

I have a column of dates that have the following format: 19940127 how can i get a matlab number that corresponds to 01/27/1994?

Best Answer

For each date, use a command like this:
datestr(datenum('19940127','yyyymmdd'),'mm/dd/yyyy')