Displaying dates as (i.e) 23 Oct 2002
Posted: Thu Oct 17, 2002 3:39 am
Hi,
I have a mysql driven webpage showing future events and meetings. However, at the moment the start dates and end dates are displayed as 10-10-2002 and 12-10-2002. See below:-
What I would like to see is 10th Oct 2003 and 12th Oct 2003. Can anybody help me with this please.
Thanks in advance.
Bob.H.
I have a mysql driven webpage showing future events and meetings. However, at the moment the start dates and end dates are displayed as 10-10-2002 and 12-10-2002. See below:-
Code: Select all
<?php
// Print the dates for the event
$rowї"startd"] = substr($rowї"start_date"], 8, 2) . "-" .
substr($rowї"start_date"], 5, 2) . "-" .
substr($rowї"start_date"], 0, 4) . " ";
$rowї"endd"] = substr($rowї"end_date"], 8, 2) . "-" .
substr($rowї"end_date"], 5, 2) . "-" .
substr($rowї"end_date"], 0, 4);
?>Thanks in advance.
Bob.H.