trying to get a form set up but for some reason, the Date input in my html is not binding to the object\'s date value, despite using [(ngModel)]
html:
&l
use DatePipe
> // ts file import { DatePipe } from '@angular/common'; @Component({ .... providers:[DatePipe] }) export class FormComponent { constructor(private datePipe : DatePipe){} demoUser = new User(0, '', '', '', '', this.datePipe.transform(new Date(), 'yyyy-MM-dd'), '', 0, [], []); }