在我的 Angular 应用程序中,我遇到了 Mat-datepicker 的问题。当我在输入字段中手动键入日期时,它不会在正确的语言环境中解析日期,但如果我从月视图中选择它是正确的。
我刚刚从moment切换到dayjs ,所以我不能使用我在文档中看到的moment-date-adapter 。
这里只有日期字段的堆栈闪电战。
https://stackblitz.com/edit/angular-hsvurg?embed=1&file=src/app/datepicker-locale-example.ts