Although I use 'toISOString ()' in javascript, it recorded as in photo 2. How do I change this format.
Note: I am using AngularJs. picture 1 is list.component.ts
Additional files:
picture 1:
formatDate(e) {
var convertDate = new
Date(e.target.value).toISOString().substring(0, 10);
this.studentForm.get('dob').setValue(convertDate, {
onlyself: true
})
}