In most browsers I can do the following
const x = document.getElementById("asdf");
x.addEventListener("focus", () => {
x.type = 'date'
})
x.addEventListener("blur", () => {
x.type = 'text'
})
<input type="text" id="asdf" placeholder="foop" />
However on mobile Safari it does not show the proper date picker when I tap on the field.
Is there anything I can do?