blob: d9f7ab5d7508c0b13627a5c8c23754805240bdcc (
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('LLLL');
}
}
|