I have a question with knowing expiring date from the list. In example i have a few list that contains some date data. What if i have expireDate: 2019/11/20
then i will notice that date from 7 days before ?
In example:
<tbody>
<tr *ngFor="let organization of organizations" (click)="openModal('companyDetail', organization.id)">
<td>{{ organization.code }}</td>
<td>{{ organization.title }}</td>
<td>{{ organization.contract.condition }}</td>
<td>{{ organization.contract.createdDate }}</td>
<td>{{ organization.contract.period }}</td>
<td>{{ organization.contract.expireDate }}</td>
<td>{{ organization.contract.conditionType }}</td>
<td>{{ organization.address }}</td>
<td>{{ organization.address }}</td>
<td>
<div class="button_group">
<button class="text-primary" (click)="updateOrganization($event, organization.id);">
<i class="fa fa-edit"></i>
</button>
<button class="text-danger">
<i class="fa fa-times-circle-o"></i>
</button>
</div>
</td>
</tr>
</tbody>
What i exactly want is i need to notify expireDate
before 7 day with some ngClass
attribute etc. Can someone give me advice ?