你可以使用moment.js作为第三方.
amDateFormat管道
import {DateFormatPipe} from 'angular2-moment'; @Component({ selector: 'app',pipes: [DateFormatPipe],template: ` Last updated: <time>{{myDate | amDateFormat:'LL'}}</time> ` }) Prints Last updated: January 24,2016