<?= $form->field($model, 'time')->textInput() ?>
Question 1:
My time is a timestamp in the database. What I want to display now is the time. How to deal with it?
Question 2:
I fill in a string such as 2017-05-13 in this date form. What method can be written in the model to automatically convert it into a timestamp?