added proper date value formatting for html5 input

Check more details on dateAsValue commit