tags:

views:

52

answers:

2

Hey i want to convert this date: 2009-12-21 10:38:07

To a more readable date, like: 22 December 2009 - 10:38.

But i don't know how to convert it to that ?

+6  A: 

You can check the date function:

$strDate = "2009-12-21 10:38:07;
echo date('d F Y - H:i', strtotime($strDate));
Fortega
omg... thx!!it works!
william
sounds like you didn't really have faith in it :-p
Fortega
hehe i was just very impressed :-D
william
A: 

// Prints: July 1, 2000 is on a Saturday echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));

hotcoder