2021-12-02 (yyyy-mm-dd) is not a palindrome when written as 02-12-2021 (dd-mm-yyyy).
The list in my comment contains only those dates that are palindromes in all of these three formats: yyyy-mm-dd, dd-mm-yyyy, and mm-dd-yyyy.
The list in my comment contains only those dates that are palindromes in all of these three formats: yyyy-mm-dd, dd-mm-yyyy, and mm-dd-yyyy.
edit: NVM. Should read better.