Ngx-bootstrap: Date input format is not working on daterangepicker....

Created on 30 May 2018  路  2Comments  路  Source: valor-software/ngx-bootstrap

Bug description or feature request:

Date input format,

[bsConfig]="{ dateInputFormat: 'MMMM Do YYYY' }"

when configured with

datepicker

i am getting correct view in my input text box,

example: "May 26th 2018"

But the same configuration if i apply on

daterangepicker

it is not giving me correct result. It gives output as below,

06/11/2018 - 07/18/2018

i am using

`
"ngx-bootstrap": "^3.0.0",

Angular CLI: 6.0.3
Node: 10.0.0
OS: linux x64
Angular: 6.0.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.3
@angular-devkit/build-angular 0.6.3
@angular-devkit/build-optimizer 0.6.3
@angular-devkit/core 0.6.3
@angular-devkit/schematics 0.6.3
@angular/cli 6.0.3
@ngtools/webpack 6.0.3
@schematics/angular 0.6.3
@schematics/update 0.6.3
rxjs 6.1.0
typescript 2.7.2
webpack 4.8.3`

Most helpful comment

It was my mistake, i would have used { rangeInputFormat: 'MMMM DD, YYYY' } instead of { dateInputFormat: 'MMMM DD, YYYY' }.
Closing the issue...

All 2 comments

It was my mistake, i would have used { rangeInputFormat: 'MMMM DD, YYYY' } instead of { dateInputFormat: 'MMMM DD, YYYY' }.
Closing the issue...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RolfVeinoeSorensen picture RolfVeinoeSorensen  路  3Comments

tpiros picture tpiros  路  3Comments

MrBlaise picture MrBlaise  路  3Comments

Scooviese picture Scooviese  路  3Comments

phmello picture phmello  路  3Comments