If we want to show date and time in to Angular Material table, we can use the binding:
<ng-container matColumnDef="receiptDate">
<th mat-header-cell *matHeaderCellDef> Receipt Date </th>
<td mat-cell *matCellDef="let element"> {{element.receiptDate| date
:"dd.MM.yyyy hh:mm:ss a"}}
</td>
</ng-container>
Comments
Post a Comment