View Single Post
Old 08-17-2009, 06:15 PM   #5 (permalink)
ETbyrne
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

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
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote