title: How to get time from datetime
body: <p>I have datetime <code>30-12-1899 9:25:52 AM</code> here needed only time that is <code>9:25:52 AM</code> .this time i wanted to insert in <code>mysql</code> database and this field has data type time.</p>
  
  <p>my code is :</p>
  
  <pre><code>&lt;?php
  $date = "30-12-1899 9:25:52 AM";
  $date = strtotime($date);
  echo date('H:i:s', $date);
  ?&gt; 
  </code></pre>
  
  <p>when execute it returns:</p>
  
  <pre><code>01:00:00
  </code></pre>
  
  <p>i am not getting where is the problem.Can any one help me on this.</p>
  
  <p>thank you.</p>