Format Interactive Placeholder Text in HTML Input Date via CSS

Viewed 6

This seems like a basic problem but I'm having trouble finding a solution on Google for some reason, a lot of the answers I find either don't preserve interactivity or refer to jQuery.

What I would like to do is to simply change the interactive text to another format, e.g., dd/mm/aaaa.

Input Date formatted to English date

However, I would not like it to be something like this — which did not work —:

<input type="date" placeholder="dd/mm/aaaa"/>

Because then I would have to do it for every date input in my application. If I could do it with CSS, it would be much more programmatic.

0 Answers
Related