首页 > 代码库 > Angular2 DatePipe

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);

 

Angular2 DatePipe