I am using ngx-bootstrap datepicker if i type a number, its automatically formatiing
I am using ngx-bootstrap datepicker if i type a number, its automatically formatiing
I am using bootstrap date picker if i type a number, its automatically formatting(force parse).
So,how can i false "force-Parse" in bootstrap date picker. if i'm giving four digit or five digit(11111)when focus-out its automatically formatting like "11/11/0001".so i'm want to disable force-parse.
If i'm giving two digits also its accepting and make format like that.
<div class="col-md-8 col-sm-12 box">
<div class="datepicker" style="display:inline-block;position:relative;">
<input style="width: 312px;" class="changebg"
[maxDate]="maxDate"
id="dateOfBirth"
[(ngModel)]="user.dob"
name="dob"
#dob="ngModel"
#dpYMD="bsDatepicker"
bsDatepicker
[bsConfig]=" dateInputFormat: 'YYYY-MM-DD' "
required>
<div [hidden]="dob.valid || dob.pristine" class="alert text-danger">
<div [hidden]="!dob.hasError('required')">DOB is required</div>
</div>
</div>
</div>
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.