0

In angular bootstrap datetimepicker choose date of previous month and datepick again then current month is displayed in popover

enter image description here

When I change the date, I get an error in the console.

enter image description here

I followed this link https://stackblitz.com/edit/ng-bootstrap-datetimepicker?file=src%2Fapp%2Fdate-time-picker%2Fdate-time-picker.component.ts

4
  • Have you declared @ViewChild(NgbDatepicker) private dp: NgbDatepicker;?? Commented Mar 3, 2023 at 6:15
  • Yes I have used @ViewChild(NgbDatepicker) private dp: NgbDatepicker; Commented Mar 3, 2023 at 6:23
  • console.log(this.dp); value get undefined Commented Mar 3, 2023 at 6:46
  • this.dp.navigateTo({ year: this.datetime.year, month: this.datetime.month }); this line not working Commented Mar 3, 2023 at 7:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.