Is it possible to auto-format the date (moment) in the input of the datepicker from angular material ?
My use case is let the user type a date "DDMMYYYY" in the input and if it's a valid date for the "fr-FR" locale, to format the same way as when you use directly the calendar, so "DD/MM/YYYY". Example : 03052018 > 03/05/2018
I want to do it for all the datepicker of my application, so i would like to know if it can be achieve by extend MomentDateAdapter
or something similar ? Actually i do it manually with (dateChange)
event and binding const formatedValue = moment(value, 'DDMMYYYY', 'fr-FR');
to the input
Thanks in advance !