title: Yii2 - jui datepicker extension - display current timestamp by default
body: <p>i'm using Yii2 extension - Jui DatePicker.</p>
  
  <p>Is there a way to show by default the current timestamp in the text box, so the user does not need to input it every time it fills de form fields?</p>
  
  <p>My view, and the form in Yii2:</p>
  
  <pre><code> &lt;?= $form-&gt;field($model, 'data')-&gt;widget(DatePicker::className(),
  
  
                  [
                      'language' =&gt; 'en',
                      'inline' =&gt; false,
                      'clientOptions' =&gt;[
                      'dateFormat' =&gt; 'yyyy-MM-dd',
                      'showAnim'=&gt;'fold',
                      'yearRange' =&gt; 'c-25:c+0',
                      'changeMonth'=&gt; true,
                      'changeYear'=&gt; true,
                      'autoSize'=&gt;true,
                      'showOn'=&gt; "button",
                      'buttonText' =&gt; 'clique aqui',
                       //'buttonImage'=&gt; "images/calendar.gif",
                      ]])
  
                  ?&gt;
  </code></pre>
  
  <p>In Yii1 i used to write the code like this (inside the widget), and the timestamp appeared by default:</p>
  
  <pre><code>'htmlOptions'=&gt;array('size'=&gt;12, 'value'=&gt;CTimestamp::formatDate('d/m/Y')),
  </code></pre>
  
  <p>Is there an equivalent in Yii2?</p>
  
  <p>Many thanks...</p>