Question : Display Date

I have a query that works on SQL 5.0 but not on 4.1 for a date display. In 4.1 it displays at Thu,, July 29, 2010 but if 4.1 it displays at Thu. July 20, o

What do I change to get the year to pull in?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
$currentdate = date('Y-m-d');
$event_query = "SELECT * FROM Events WHERE StartDate >= '$currentdate' AND Approved='1' Order By StartDate LIMIT 5";
$event_query_result = mysql_query($event_query);
 
if (mysql_num_rows($event_query_result) > 0)
{
       
 	$i =0;
        while ($event_row = mysql_fetch_assoc($event_query_result))
        {
                $event_id = $event_row['ID'];
                $event_name = $event_row['Name'];
                $event_date = $event_row['StartDate'];
				$event_time1 = $event_row['DisplayTime'];
                $event_location = $event_row['Location'];
 
                $event_time = mysql2timestamp($event_date);
                $event_display_date = date("D, F j, o", $event_time);



echo  "$event_display_date"

Answer : Display Date

Change this line:
 $event_display_date = date("D, F j, o", $event_time);

To this:
 $event_display_date = date("D, F j, Y", $event_time);
Random Solutions  
 
programming4us programming4us