<?php
$today = "2004-07-15";
$sql = "SELECT UNIX_TIMESTAMP(my_date_column)
FROM my_table
WHERE my_date_column = '$today'";
$result = mysql_query($sql, $db_connection);
$row = mysql_fetch_array($result);
$month = date('F', $row['UNIX_TIMESTAMP(my_date_column)']);
$date = date('j', $row['UNIX_TIMESTAMP(my_date_column)']);
$year = date('Y', $row['UNIX_TIMESTAMP(my_date_column)']);
echo "In Europe, today is: ".$month." ".$date.", ".$year;
?>
I've seen several ways of converting date columns from YYYY-MM-DD to anything you want.
If you do it in PHP, you have several options. If you plan on doing date comparisons, convert everything into a Unix timestamp and work with them like basic arithmetic. You'll see in my example that I used the MySQL function UNIX_TIMESTAMP to convert a date column to a Unix timestamp. See the MySQL manula for details.
If you wish to do your date comparisons in PHP, look into the function mktime() among others. Like I said, there are several ways of doing it and everyone has their favorite. I am only making one suggestion of a function to use.
Also, search through this forum as date comparison questions are frequently asked (and frequently answered).