title: YII : How to Change datetime format displayed on the View
body: <p>A newbie question in Yii:
  I have a model of a table in Yii that contain a datetime field.</p>
  
  <p>I'm using CActiveForm to display this field:</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'createdon'); ?&gt;
      &lt;?php echo $form-&gt;textField($model,'createdon', array('id'=&gt;'createdon')); ?&gt;
      &lt;?php echo $form-&gt;error($model,'createdon'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but the textfield displayed is on datetime format come from MySQL which is yyyy-mm-dd hh:mm:ss</p>
  
  <p>How could I change the format displayed on the textfield to a different time format?
  (maybe dd/mm/yy or mm/dd/yy or else)</p>
  
  <p>any help would be appreciated.</p>
  
  <p>thanks!</p>