Check whether the eight digit number is a valid date

Time:2021-7-17

[Ctrl + a all optional note: to introduce external JS, you need to refresh the page again]