support date type input in various browsers