Ionic pipe

i cant split the value using ionic pipe.

<div class="col"  style="text-align: right">{{timearrivals | mattDamon}}</div>

pipe page:
import {Pipe} from ‘@angular/core’;

name: ‘mattDamon’
export class MattDamon {
transform(value, args) {
//console.log(“splitting value”,value);
let time = value.split(‘T’)[1];
let timehr=time.split(’:’)[0];
let timemin=time.split(’:’)[1];
// let center=":";
let Fulltim=timehr+":"+timemin;
return Fulltim;

but it shows error

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Instead of reinventing the wheel, use date-fns to handle dates, and name your pipe something descriptive.