Angular2 DatePipe

<p>The hero's birthday is {{ birthday | date:'yyyy年MM月dd日 HH:mm:ss' }}</p>
    // birthday = Date.now();
    birthday = new Date(2016, 10, 21);

 

posted on 2016-11-09 17:35  cjxhd  阅读(2056)  评论(0编辑  收藏  举报

导航