note 28957 added to function.date
| From: | R dot Rajesh at rack1 dot php dot net | Date: | Wed, 29 Jan 2003 06:09:50 +0000 |
| Subject: | note 28957 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43016@lists.php.net to get a copy of this message | ||
1. $doj <== Fetch the DOJ (of DATETIME format) from MySQL table...
2. print $doj //2003-01-21 17:37:50
3. $formated_doj = date("d-m-Y", $doj);
4. print $formated_doj //01-01-1970 (????)
-R. Rajesh Jeba Anbiah (ng4rrjanbiah@rediffmail.com)
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+28957
http://master.php.net/manage/user-notes.php?action=delete+28957
http://master.php.net/manage/user-notes.php?action=reject+28957