Я новичок в Angular 8. Любая подсказка или помощь будет принята с благодарностью !! У меня есть следующее
<input id="startDate" name="startDate" type="date" [(ngModel)]="startDate" required #startDate2="ngModel" />
У меня есть следующий машинописный код, который получает текущую дату минус 3 месяца.
let threeMonthsFromCurrentDate = new Date();
threeMonthsFromCurrentDate.setMonth(threeMonthsFromCurrentDate.getMonth() - 3);
this.startDate = threeMonthsFromCurrentDate;
this.startDate = new Date( threeMonthsFromCurrentDate.getFullYear(),threeMonthsFromCurrentDate.getMonth(),threeMonthsFromCurrentDate.getDate());
В браузере startDate не отображается 3 месяцев go:
![enter image description here](https://i.stack.imgur.com/37PDK.jpg)