Home > Software design >  date input field is taking more than 4 character in vue js input type date
date input field is taking more than 4 character in vue js input type date

Time:05-06

I am using Vuejs 3 and when I use input type date it is taking up to 6 characters in the year field. Is there any way to make it take only 4 characters YYYY in the year field?

CodePudding user response:

You can use max attribute for that. e.g.

<input type="date" max="9999-12-31">
  • Related