title: bootstrap datetimepicker dateformat saving to mysql
body: <p>i have tried several ways to convert date selected with datetimepicker to save it in my mysql database but none of them works.</p>
  
  <p>i want to save this format:</p>
  
  <pre><code>  10 Octobre 2015 - 12:28 pm
  </code></pre>
  
  <p>but i have this saved:</p>
  
  <pre><code> 01 Jan 1970
  </code></pre>
  
  <p>any suggestions? Many tks</p>
  
  <p>My code to select date:</p>
  
  <pre><code>&lt;div class="input-group date form_datetime col-md-6"  data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_input1"&gt;
     &lt;input class="form-control" name="date_from" size="16" type="text" value="" readonly&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and for saving it:</p>
  
  <pre><code>$date_from=$_POST['date_from'];
  $query = $db-&gt;prepare('INSERT INTO events (date_from, title) 
      VALUES (:date_from, :titre)');
  </code></pre>