• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
listing news and events problem

#2
[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
Code:
$date = '2011-01-01' ;
echo date('F Y' , strtotime( $date ) );

Saludos


Messages In This Thread
listing news and events problem - by El Forum - 06-17-2011, 05:32 AM
listing news and events problem - by El Forum - 06-17-2011, 01:31 PM
listing news and events problem - by El Forum - 06-20-2011, 11:34 PM
listing news and events problem - by El Forum - 06-20-2011, 11:45 PM
listing news and events problem - by El Forum - 06-20-2011, 11:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.