note 84226 deleted from function.date by mgf

From: Date: Mon, 07 Jul 2008 12:38:30 +0000
Subject: note 84226 deleted from function.date by mgf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141234@lists.php.net to get a copy of this message
Note Submitter: desisco.com.ve ---- 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 ?>

« previous php.notes (#141234) next »