aboutsummaryrefslogtreecommitdiff
path: root/app/pipes.ts
blob: 214c87a68694c9990d10076fcdd669a1e64f3ab4 (plain)
1
2
3
4
5
6
7
8
9
10
import {Pipe} from 'angular2/core';
/// <reference path="moment.d.ts" />

@Pipe({name: 'momentDate'})

export class MomentDatePipe {
  transform(value:string, args:string[]) : any {
    return moment(value).format('LLL');
  }
}