note 84226 added to function.date
| From: | desisco dot com dot ve at osu1 dot php dot net | Date: | Fri, 04 Jul 2008 04:00:48 +0000 |
| Subject: | note 84226 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141157@lists.php.net to get a copy of this message | ||
I was looking for this for a fee minutes and finally get the solution,
formating a string date;
<?php
$YourDate="2008-06-30"; //This is your valid String Date
$NewFormatedDate=date("d",strtotime ($YourDate)); // Returns the day of the Month = 30
$NewFormatedDate=date("M",strtotime ($YourDate)); // Returns the name of the Month = Jun
?>
----
Server IP: 200.6.154.201
Probable Submitter: 200.8.169.59
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/84226
Del: integrated -- https://master.php.net/note/delete/84226/integrated
Del: useless -- https://master.php.net/note/delete/84226/useless
Del: bad code -- https://master.php.net/note/delete/84226/bad+code
Del: spam -- https://master.php.net/note/delete/84226/spam
Del: non-english -- https://master.php.net/note/delete/84226/non-english
Del: in docs -- https://master.php.net/note/delete/84226/in+docs
Del: other reasons-- https://master.php.net/note/delete/84226
Reject -- https://master.php.net/note/reject/84226
Search -- https://master.php.net/manage/user-notes.php