0

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.

Philippe Fanaro
  • 6,148
  • 6
  • 38
  • 76
  • The date format is determined by the localisation settings of the user's browser. Giving a date format which isn't the one the user is used to probably isn't a good idea. – Quentin Sep 21 '22 at 19:15
  • I agree that that default is very sensible, but I find it very weird and underwhelming that there isn't a simple way to override it in HTML or CSS. – Philippe Fanaro Sep 21 '22 at 19:18

0 Answers0