Trying to implement Angular Material v10 datepicker with the rangePicker option with moment.js But when I use moment in combination with the rangePicker it gives me this error.
Error: date.getFullYear is not a function
This error happens when I try to select the second date matEndDate
Modified Google Stackblitz example showing the error:
https://stackblitz.com/edit/angular-imb7gg?file=src/app/datepicker-moment-example.ts