I have a scenario where the date format will be provided from the backend. So I want to dynamically set the date format based on the value provided.
ex: 'DD/MM/YYYY', 'MM/DD/YYYY' or 'YYYY/MM/DD'
I have gone through the Angular Material for Datepicker but wasn't able to find a way to implement.
Please find the minimal code over here (Stack Blitz).
Note: The compiler is throwing error since I am not able to fetch the date format from my dummy service datepicker-moment.service.ts