It is important to understand how Excel stores dates. It stores them as numbers, specifically, the number of days since 1/0/1900.
So in Excel, dates really are numbers! They are just numbers with a date format applied to them.
So your results of 40508,40600 are actually correct. Just change the format of the cell to your desired date format, and you will see it in the normal date format you are used to.