I have a system for history events. It’s showing the date using this
date("j F, Y", strtotime($row['dated']));
But when I try: 21 Oct 1877, it’s showing 31 December, 1969.
How can I fix this problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use that
$date = new DateTime($row['dated']);
echo $date->format('Y-m-d H:i:s');
from here http://www.php.net/manual/en/datetime.format.php