How do I convert a date in PHP?
-
20-09-2019 - |
Question
How can I convert this date:
2009-12-21 10:38:07
to a more readable date, like 22 December 2009 - 10:38
?
OTHER TIPS
// Prints: July 1, 2000 is on a Saturday
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow