How I can echo 2011-01-31 as 31 January 2011?
The input (2011-01-31) comes from the database (type: date).
Also is there any option to use locale names for the month?
Edit:
$date = date_create($row['bdate']);
echo date_format($date, 'd F Y'); //31 January 2010
could be solution but date_format has no option for other languages(?). Is there any solution? Like 31 Ocak 2011
Probably is strftime what you seek.
Example:
echo strftime('%d %B %Y', strtotime($db_entry));