Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Pipe, PipeTransform } from '@angular/core';
- @Pipe({
- name: 'dateDisplay'
- })
- export class DateDisplayPipe implements PipeTransform {
- transform(value: string): string {
- return value.slice(0, 10) + ', ' + value.slice(11, 16);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement