I am using Javascript's inbuilt date function to validate if a date is valid. The date pattern is dynamic and it varies for a different system based on user preferred format.
The function new Date("02.03.2021") is working fine The function new Date("23.03.2021") is failing.
Notice that the date is > 12 (number of months)
PS: I cannot use external libraries