date and time question
Posted: Mon Feb 01, 2010 4:37 pm
Very new to php so this might be a dumb question.
When a user selects a date and time on a previous webpage, the dateTimePurchased is held.
I am outputting it in the following statements:
echo "<tr><td>Date: ".$_SESSION['dateTimePurchased']."</td></tr>";
echo "<tr><td>Time: ".$_SESSION['dateTimePurchased']."</td></tr>";
Output for both is 2010-02-01 16:07:00
1. For the 1st line - Date:, how can I get the output to say Tuesday February 2, 2010
2. For the second line 4:07pm.
Can I mod just the lines I have to get the output correct?
Really appreciate any help.
When a user selects a date and time on a previous webpage, the dateTimePurchased is held.
I am outputting it in the following statements:
echo "<tr><td>Date: ".$_SESSION['dateTimePurchased']."</td></tr>";
echo "<tr><td>Time: ".$_SESSION['dateTimePurchased']."</td></tr>";
Output for both is 2010-02-01 16:07:00
1. For the 1st line - Date:, how can I get the output to say Tuesday February 2, 2010
2. For the second line 4:07pm.
Can I mod just the lines I have to get the output correct?
Really appreciate any help.