Hello, Is there a code sample to watch?
- 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 :

and

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
Bewertung
Dieses Issue wurde noch nicht bewertet.