How can I implement DatePipe in my Angular component?
This is the code snippet that I am currently using.
for (let i = 0; i < this.days.length; i++) {
this.storeStart(this.days[i], null, null, null);
}
I have stored weekdays (Monday to Friday) in my days array. I now need to store them along with other data in a separate array. Currently, the format of date being displayed is 'Fri Nov 01 2019 00:00:00 GMT+0100'. However, I would like it to be displayed as '01-11' (day-month). Additionally, the current data type is Date but I want to convert it to a string. Any help on how to achieve this?