I have a form where the date is entered and saved but the date is not binded when I go to edit the form.
JSON:
"checkOut": {
"runDate": "2024-07-05T09:42:00.000Z",
}
The form is:
<input type="datetime-local" [(ngModel)]="checkOut.runDate">
Date is shown by binding like this:
{{source.room.checkOut?.runDate | date:"dd MMM, yyyy"}}
When I go to edit the form, I want the input field [(ngModel)]="checkOut.runDate"
to be pre-filled if the date is already entered. How can I achieve this?