I have a string with a german date (31.01.2019, DD.MM.YYYY). Now I need to check if the date is valid with date-fns.
dateFns.isValid(new Date('19.11.2019'), 'DD.MM.YYYY');
This is not working. I always get a false feedback from date-fns. I think date-fns is expecting another date format.
How can I validate the string with the german date format?