How to Extract just the Date from Angular Material Datepicker

Solution 1:

Try this,

updateDoB(dateObject){
 console.log("DATE in dd/mm/yyyy",dateObject.toLocaleDateString())
}

Solution 2:

another way to do it:

dateObject.value.toLocaleString().substring(1, 10)