change to make date and datetime input render as type="date" and
type="datetime" respectively.