Answer the question
In order to leave comments, you need to log in
How to make mask with validation for date in Angular2?
Using the text-mask plugin I made the following mask: [/\d/, /\d/, '.', /\d/, /\d/, '.', /\d/, /\d/, /\ d/, /\d/]
However, this way I can enter for example 99/99/2010. Is there a module that allows you to automatically convert the date to the maximum number in this case? Automatically checking how many numbers are in a particular month and choosing the maximum to get 12/31/2010? I saw something similar in the DRF visualization of the date field. Perhaps there is a datepicker with such functionality?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question