why date format give true value using momentjs?

I am trying to validate formate . but I am getting true value .

why ?

  var a = "11-01-2022";
  console.log("sss", moment(a, "YYYY-mm-DD").isValid());

Expected output is : false. here I am getting true why ?

var a = "2022-01-11";
      console.log("sss", moment(a, "YYYY-mm-DD").isValid());
Expected output is : true.

here is my code
https://codesandbox.io/s/patient-cookies-npsit?file=/src/App.js:85-165