akveo / akveo/nebular

Hello, Is there a code sample to watch?

Offen
#1,641 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
bug module:components P2: important quality
Vorherrschende Sprache
TypeScript
Sterne
8.1k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,

The same problem for me.
> As days from 1 to 12 are valid my guess is that days are taken for months

In the ThemeModule I have:

```
...NbDateFnsDateModule.forRoot({
format : 'DD.MM.YYYY',
parseOptions: { awareOfUnicodeTokens: true },
formatOptions: { awareOfUnicodeTokens: true }
}).providers,
NbDateFnsDateService,
```
In my component.ts I have :

```
constructor(private formBuilder: FormBuilder,
private dateService: NbDateFnsDateService,
private route: ActivatedRoute) {

}

...

this.plantationForm = this.formBuilder.group({
exploitant: [null, Validators.required],
parcelle: [null, Validators.required],
surface: [null, Validators.required],
denree: [null, Validators.required],
densite: [1, Validators.required],
dateDebut: [today, Validators.required],
dateFin: [new Date().setMonth(new Date().getMonth() + 4)]
// dateDebut: [today, Validators.required],
// dateFin: [today, Validators.required]
});
```

In my view I have :

![image](https://user-images.githubusercontent.com/15669706/56141187-a3411880-5f9c-11e9-90bf-44b989ca1177.png)

and

![image](https://user-images.githubusercontent.com/15669706/56141177-9cb2a100-5f9c-11e9-810d-0a78bf4e55e9.png)

In my FormGroup errors I have :
nbDatepickerParse:{value: "18.04.2019"}

It looks like the issue wasn't resolved...

_Originally posted by @Maxxil in https://github.com/akveo/nebular/issues/1056#issuecomment-483279049_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.