
Any PHP Coders Can Help Please?
I have create one text box with the name product_date which uses alongside it a datepicker to choose the date. The format of the date entered into that text box is mm-dd-yyyyy.
Which of course when you try and stored into a msql db field with the date value.. It will not work! The defualt format for it is yyyy-mm-dd
I have used the following peice of code:
$product_date = date("Y-m-d", strtotime($_POST["product_date"]));
Which allows me to be able to enter the date in the right format into the db field..
I am now wanting to change how it is displayed.. Please see here Untitled Document At the moment it is displayed in the yyyy-mm-dd format..
I need some php code written that allows me to take the information from the product_date field and the output in mm-dd-yyyy
Can anyone help me through this process please??
-- Lisa G