I have a table value as a date.
<ng-container cdkColumnDef="lastModificationDate">
<mat-header-cell *cdkHeaderCellDef fxFlex="30%">Last Modification Date</mat-header-cell>
<mat-cell *cdkCellDef="let subgroup" fxFlex="30%">{{employee.lastModificationDate | date: 'dd MMM yy HH:mm'}}</mat-cell>
</ng-container>
This pipe is working for me good, but in some cases the date value is coming as null. In this case I want to populate it as "N/A".
so I need something like:
{{employee.lastModificationDate = null ? | date: 'dd MMM yy HH:mm' : 'N/A'}}
How can I do this optional operation with date pipe?