title: Send date and time for method post
body: <p>I send a var type DATETIME in a form with method POST , the format of the date is "2014-04-20 05:00:47" but when is recived for boleta.php this show only "2014-04-20". I dont understand, i posted the code php/html and code of boleta.php   </p>
  
  <p>code html/php:
  <pre> </p>
  
  <pre><code>&lt;?php $var=array();
  
  ?&gt;
  &lt;?php foreach ($model as $data): ?&gt;
      &lt;h1&gt; &lt;?php $var[]= $data-&gt;fecha_ingreso;
  
      ?&gt;&lt;/h1&gt;
      &lt;?php endforeach?&gt;
  
        &lt;form action="boleta.php" method="POST" class="form-horizontal" role="form"&gt;
  
  
  
  &lt;label for="fecha"&gt;Select date&lt;/label&gt;&lt;br&gt;
    &lt;select name="fecha" class="form-control"&gt;
      &lt;option value = &lt;?php echo $var[0]; ?&gt; &gt;   &lt;?php echo $var[0];?&gt;  &lt;/option&gt;
      &lt;option value = &lt;?php echo $var[1]; ?&gt; &gt;    &lt;?php echo $var[1];?&gt;  &lt;/option&gt;
      &lt;option value = &lt;?php echo $var[2]; ?&gt; &gt;    &lt;?php echo $var[2];?&gt;  &lt;/option&gt;
  
    &lt;/select&gt; 
   &lt;div class="form-group"&gt;
              &lt;div class="col-sm-offset-2 col-sm-10"&gt;
                &lt;div class="pull-right"&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Send&lt;/button&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
  
           &lt;/form&gt;
  </code></pre>
  
  <p><code></p>
  
  <p>code boleta.php
   </p>
  
  &lt;?php
  
  date_default_timezone_set("America/Santiago");
  
  echo $_POST['fecha'];
  ?&gt;
  </code></pre>
  
  <p></p>