Update date input type value on edit

Editing objects with chrome failed because of the date format used on the value attribute of the input of type date. Needed to match rfc3339 spec so I created a helper function that does exactly that. 

I didn't change anything for the datetime type since I don't have proper input type rendering on chrome here. Might be possible to do the same on a browser that does support datetime input types.