OKyJIucT
9/30/2016 - 2:43 PM

jui datepicker

jui datepicker

<?= $form->field($model, 'birthday')->widget(DatePicker::className(),
    [
        'clientOptions' => [
            'dateFormat' => 'yyyy-MM-dd',
            'value' => date('Y-m-d'),
            'yearRange' => 'c-100:c+0',
            'changeMonth' => true,
            'changeYear' => true,
        ],
        'options' => [
            'class' => 'form-control'
        ]

    ]
); ?>