MATLAB: Change the number of the day since specified year to date

datedaynumber

Hi, how to change the day number since 1800 year
for example 86135 (day number since 1800 year) to format 30-10-2035
Thanks

Best Answer

dn = 86135;
datestr(dn+datenum('12-31-1799')); %MATLAB counts from the date "1-1-0000"
See "doc datenum" and "doc datestr" for some more details.