title: how to convert date format to datetime format using php
body: <p><strong>It is not work for me, i want to convert date format to datetime of mysql format using php.i have try to obtain through the below code.what is wrong with my code</strong>   </p>
  
  <pre><code>    $travelDatesconv=strtotime($travelDate);       //15/03/2015
  
           $travelDates=date('Y-m-d H:i:s',strtotime($travelDatesconv));
  
              echo $travelDates."=&gt;uu";        
            //i need 2015-03-15 00:00:00
  </code></pre>