Date input type on forms

I see in a post from a few years ago that it is possible to use “embed code” to use an input type of “date” in a form but the post doesn’t show how to do it. Are there instructions anywhere?