MATLAB: How to convert yymmdd to dd/mm/yyyy

dd/mm/yyyytime convertyymmdd

Hi
Does anyone know how to convert yymmdd to dd/mm/yyyy? I have dates is given in the yymmdd format, such as 750525,780215,…..which mean year 1975, month-5, day-25 or year 1978, month-2,day-15. I wanted to convert the date in the form dd/mm/yyyy which is as 25/05/1975, 15/02/1978.
How I can do it?
Thanks a lot!

Best Answer

A = {'750525','780215'}
B = cellstr(datestr(datenum(A,'yymmdd'),'dd/mm/yyyy'))