Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import { Pipe, PipeTransform } from '@angular/core';
  2.  
  3. @Pipe({
  4. name: 'dateDisplay'
  5. })
  6. export class DateDisplayPipe implements PipeTransform {
  7. transform(value: string): string {
  8. return value.slice(0, 10) + ', ' + value.slice(11, 16);
  9. }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement