I have the date 1/11/2010
and use the function
= date(year(A1),month(A1),day(A1))
to convert the date to the number to 40189 with Excel.
Can I use MATLAB to convert the number 40189 back to the date again?
I have the date 1/11/2010
and use the function
= date(year(A1),month(A1),day(A1))
to convert the date to the number to 40189 with Excel.
Can I use MATLAB to convert the number 40189 back to the date again?
Use DATESTR
Unfortunately, Excel starts counting at 1-Jan-1900. Find out how to convert serial dates from Matlab to Excel by using DATENUM
In other words, to convert any serial Excel date, call
EDIT
To get the date in mm/dd/yyyy format, call
datestr
with the specified formatAlso, if you want to get rid of the leading zero for the month, you can use REGEXPREP to fix things