I want to use Angular Material Datepicker to get the date on my page. I use this code, but I canβt figure out how to access the selected value correctly.
<md-input-container> <input mdInput [mdDatepicker]="myDatepicker"> <button mdSuffix [mdDatepickerToggle]="myDatepicker"></button> </md-input-container> <md-datepicker #myDatepicker></md-datepicker>
I tried the [value] field in the input, but how can I get the date to send it to my backend? Thank you
angular datepicker angular-material2
hawxs
source share