Date Format On Form Submit
I've created an appointment form where the data gets saved in the database and an email gets sent to the form submitter. I want to display the date and time in a more user friendly format. Here is how it is coded in the email php file.
Email Code as it is:
<strong>Date Requested:</strong> <?php echo ((isset($_POST["appointDate"]))?$_POST["appointDate"]:"")?>
<strong>Time Requested:</strong> Between <?php echo ((isset($_POST["appointTime1"]))?$_POST["appointTime1"]:"")?> And <?php echo ((isset($_POST["appointTime2"]))?$_POST["appointTime2"]:"")?>
Which shows up like:
Date Requested: 2013-11-01
Time Requested: Between 07:00:00 And 14:00:00
I want it to be:
Date Requested: November 1, 2013
Time Requested: Between 7:00AM And 2:00PM
Any suggestions?