Ngx-bootstrap: Cannot change "Invalid date" text in datepicker in locales

Created on 22 Jan 2018  路  7Comments  路  Source: valor-software/ngx-bootstrap

Even if Ichange locale
https://valor-software.com/ngx-bootstrap/#/datepicker#locales
I always get "Invalid date" when I put manually invalid date.
I would rather like to put nothing in this input or If necessary text in locale language.
How to fix it?

comp(datepicker) enhancement

Most helpful comment

Is there any plan to fix this issue ? I really want to customize this text and it would be great if you provide us a way to change that
Thank you

All 7 comments

Is there any plan to fix this issue ? I really want to customize this text and it would be great if you provide us a way to change that
Thank you

Getting Invalid date while editing the reactive form ? can anyone have solution about this.

            <input type="text" class="form-control" placeholder="day/month/year" bsDatepicker [bsConfig]="{ dateInputFormat: 'DD/MM/YYYY' }" formControlName="Mdate" />
            <input type="text" class="form-control" placeholder="day/month/year" bsDatepicker [bsConfig]="{ dateInputFormat: 'DD/MM/YYYY' }" formControlName="Edate" />

+1

Would be good to have in consideration if the solution would come from the _locale_ file or using the native i18n

Was this page helpful?
0 / 5 - 0 ratings