getting Time and Date differences PHP
<p>I am trying to get the differences of dates. I am a newbie, please understand. Here are some parts:</p>

<p>(Original Lines)</p>

<pre><code>$BirthDate = "$month $day $year";
$dateBirth = date('F j, Y',strtotime($BirthDate));
</code></pre>

<p>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: </p>

<p>(Modified Lines)</p>

<pre><code>$BirthDate = "$month $day $year $hours $minutes $seconds $ampm";
$dateBirth = date('F j, Y h:i:s a',strtotime($BirthDate));
</code></pre>

<p>Yes, the original lines work, the echo the correct inputted data.
Problem is, when I did the Modified Lines, the output becomes:</p>

<pre><code>January 1, 1970 08:00:00 am
</code></pre>

<p>I can't somehow think of any solution to this. Please help. Thanks. </p>
