I want to add to a Date timestamp 48 hours or 2 Days in html.
E.g. 04.10.2019 + 2days = 06.10.2019. I don't know if this is possible with html.
Here is that part of my code:
<tr *ngFor="let date of dateValues">
<td>{{date.startDate | date:'dd.MM.yyyy'}}</td>
<td>{{date.endDate | date:'dd.MM.yyyy'}}</td>
</tr>
The date.startDate
is of type Date.
The date.endDate
is of type Date too.
I'm want to do something like this:
<tr *ngFor="let date of dateValues">
<td>{{date.startDate | date:'dd.MM.yyyy'}}</td>
<td>{{date.endDate =(date.startDate + 2days) |date:'dd.MM.yyyy'}}</td>
</tr>
I would appreciate any suggestion of how to do this, or any source to read about it.