Skip to content

DateRangePicker not working with MomentDateAdapter #19902

@snookyly

Description

@snookyly

Using the sample https://material.angular.io/components/datepicker/overview#date-range-input-forms-integration with the MomentDateAdapter the following error will be shown in browser console:

ERROR
Error: date.getFullYear is not a function

To reproduce see https://stackblitz.com/edit/angular-qwgwqf and click the datepicker icon to open the calendar. Then select start date and end date and see the error on end date selection

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions