Answer the question
In order to leave comments, you need to log in
What causes the error: "Invalid value format" and how to fix it?
Hello everybody! When submitting the form, in the field with the date and time I get the error "Invalid value format".
Date field in the submit form:
<?= $form->field($model, 'date_filing')->widget(DateTimePicker::className(),[
'name' => 'dp_2',
'type' => DateTimePicker::TYPE_COMPONENT_PREPEND,
'pluginOptions' => [
'format' => 'd M yyyy H:i',
'autoclose'=>true,
]
]); ?>
[['date_filing'], 'datetime', 'format' => 'php:d m Y H:i'],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question