08-17-2009, 06:15 PM
|
#5 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
If you are using PHP 5.2 or better then you can use most of the DateTime functions:
PHP Code:
$date = new DateTime('2009-08-10 21:10:52'); echo $date->format('Y-m-d'); // Output 2009-08-10
Check out these links
> http://us.php.net/manual/en/class.datetime.php
> http://us.php.net/manual/en/datetime.format.php
> http://us.php.net/manual/en/datetime.modify.php
|
|
|
|