add duration in function ionic code example Example: ionic format date {{valueDate | date: 'dd/MM/yyyy'}}