I am trying the Angular Material Date picker input box and am type for DD/MMM/YYYY Or MMM/YYYY Or (any string value) require the user to click on button am get (any string value) and assign date picker input box.
Datepiker() {
this.mainForm.get(this.formgroupName).get('Completion').setValue("Provide");
}


Kiran MohantyRank #821 · 2.8K reputationPosted Jan 14, 2021, 6:16 AM EST
Haridhass ManiRank #1,007 · 2K reputationPosted Jan 18, 2021, 4:02 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Jan 18, 2021, 4:10 AM EST
In your module, import MAT_DATE_LOCALE and add it to providers: