This last time part in value attribute prevent browser to correctly display default value. Chrome displays nothing. I know that in MySQL we can use DATE field, but MSSQL doesn’t have it, it always provides data with time part.
Any ideas? This is unexpected behavior of yii(bug), in MySQL all is working. In MSSQL dateField implemented in 1.1.11 not working at all.
However, the described problem comes from the MS SQL database engine. For me, it is not normal then you are using type ‘date’ and the database engine returns to you ‘datetime’ value.
There are three ways how to solve this problem:
Implement a workaround in your own code,
Beg developers to implement workaround in the Yii code,
One little moment (which cause the problem) - MSSQL doesn’t have DATE field type! I don’t mind, you can name it on your own, but $form->dateField don’t working with MSSQL.