I want to use Angular Material Datepicker to get a date into my page.
I use this code, but cannot figure out how to access the selected value correctly.
as stated in the docs there are 2 events (dateChange) and (dateInput) that can be used if you prefer. the $event has 3 props, target is the MatDatepickerInput, targetElement for the native HTML Element, and value which is the Date object.