title: Yii Format textField Datetime Model
body: <p>The <code>$model-&gt;datetime</code> is <code>d-m-Y H:i:s</code>.</p>
  
  <pre><code>&lt;?php echo $form-&gt;textField($model,'datetime'); ?&gt;
  </code></pre>
  
  <p>I would like the value of the input just be d-m-Y, how can I format it?</p>