06-17-2011, 01:31 PM
[eluser]vitoco[/eluser]
suposing that your date stored in $date , you can transform that to time using strtotime
http://www.php.net/manual/en/datetime.formats.date.php
in one of the formats accepted, then use the time resulting as second parameter for date() function, and format to using first parameter
http://php.net/manual/en/function.date.php
example
Saludos
suposing that your date stored in $date , you can transform that to time using strtotime
http://www.php.net/manual/en/datetime.formats.date.php
in one of the formats accepted, then use the time resulting as second parameter for date() function, and format to using first parameter
http://php.net/manual/en/function.date.php
example
Code:
$date = '2011-01-01' ;
echo date('F Y' , strtotime( $date ) );
Saludos