I have a date which is fetched from the backed as 30-10-2019 (DD-MM-YYYY) format. I am trying to get this date to be displayed in angular material datepicker but its not displaying the date.
I tried moment and used moment (this.myDate).format('YYYY-MM-DD').toString(); What am I missing? Any other method (without using moment) is also fine.