IE11's Date.parse
function "succeeds" on a large number of invalid dates.
Without using a third-party library, what is the proper way to validate whether a string in the format YYYY/MM/DD
contains an actual "legal" date (e.g. "2020/02/29" succeeds, but "2019/02/29" fails, etc) in javascript?
new Date(Date.parse('2020/05/99') // Fri Aug 07 2020
new Date(Date.parse('2020/05/100') // Sat Aug 08 20202
new Date(Date.parse('2020/05/1000') // Wed Jan 25 2023
new Date(Date.parse('2020/69/800000') // Fri Dec 29 4215
new Date(Date.parse('2020/69/1000') // Sat May 27 2028
new Date(Date.parse('2020/70/1000') // Invalid Date