<div class="col-xs-3"> <?= $form->field($model, 'fecha')->widget( DatePicker::classname(), [ 'language' => 'es', 'removeButton' => false, 'options' => [ 'placeholder' => 'Fecha:', 'class' => 'form-control', 'id' => 'fecha_desde-input', 'onchange' => 'buscarProyeccion(this.value)' ], 'pluginOptions' => [ 'startDate' => '01-01-2000', //'startDate' => date('d-m-Y'), 'autoclose' => true, 'format' => 'dd-mm-yyyy', ] ] )->label('Fecha'); ?> </div>