type="date"
in html saves as a string in firestore.
In the html file.
<input #scheduledStartDate="ngModel" [(ngModel)]="reposition.scheduledStartDate"
name="scheduledStartDate" id="scheduledStartDate" class="input is-normal"
type="date" required placeholder="Leaving...">
from the interface .ts file
scheduledStartDate?: DateTimeFormat;
Also tried
scheduledStartDate?: Date;
With the same result.
Both options save the inputted date value as a string in firestore e.g. "2018-01-02" instead of a timestamp.