I am trying to get the differences of dates. I am a newbie, please understand. Here are some parts:
(Original Lines)
$BirthDate = "$month $day $year";
$dateBirth = date('F j, Y',strtotime($BirthDate));
These lines are actually working, however, I want to add more info like the hours, minutes, seconds and ante meridiem. I modified the code and here's what I did:
(Modified Lines)
$BirthDate = "$month $day $year $hours $minutes $seconds $ampm";
$dateBirth = date('F j, Y h:i:s a',strtotime($BirthDate));
Yes, the original lines work, the echo the correct inputted data. Problem is, when I did the Modified Lines, the output becomes:
January 1, 1970 08:00:00 am
I can't somehow think of any solution to this. Please help. Thanks.