Ok. I wrote a whole article but I wasnt logged in so its all gone. Now the short version:
Sql stores the date in this format: year-month-day ("Y-m-d"). I presume you want to output the date as MM DD YYYY.
To do so you have to set the field in your sql DB to DATE data type. The date will be stored the way described above. To output the date the way you want it you can do the following:
$date_from_sql=$row["date"]; // is the date you retreive from the DB
$date=strtotime($date_from_sql); // strtotime converts the date in seconds.
$date_my_format=date("m d Y", $date) // you convert the seconds back to a date but to the format you like to have.
//You can do this also in one line of code:
$date=date("m d Y", strtotime($row["date"]));
I hope it helps 🙂