Date is something which could be represented or described in many different ways. For Instance the date today could be represented in the following ways-
20th March 2018
And so on
So, it is Important to know how would one convert from one format to another.
The first thing to do is set a default date format.
Then if you want the output of the date to be as month/day/year
This statement can be modified to the format that you require.
You need to pay attention to the characters that are used to describe the dates, they are case sensitive.
This would give you a detailed explanation on the characters and their description.