How to get exact date format ("MM/dd/yyyy") from the excel

While seeing the excel it show like MM-dd-yyyy format. While automating it will give different format.

What was the error while changing the format?

Regards
Gokul