MATLAB: Xlsread function returns numeric date when it reads string date from a column

MATLAB

Why xlsread function returns numeric date when it reads string date from a column?
How can I read an Excel spread sheet that has "DEC 21" in a cell and not have it converted to a date?

Best Answer

The "xlsread" function exhibits this behavior because  Excel is storing the information internally as a "datenum". You can use "datestr" function to convert the date to the correct format after import.
For example: 
>> datestr('12/21/16','mmm-dd')
ans =
Dec-21
For further information regarding "datestr" please refer the documentation at:
MATLAB Command: doc datestr
Web Link: http://www.mathworks.com/help/releases/R2015b/matlab/ref/datestr.html