Skip to main content

Posts

Showing posts from November, 2018

Angular Material table show date and time

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>