Angularjs - 格式日期(2016年1月13日)

时间:2016-09-23 10:13:26

标签: angularjs

我有下一个日期:

<p>{{customer.date | date :  "fullDate"}}</p>

我想要这种格式:2016年1月13日

我正在测试不同的格式但是没有得到它。

我怎么能这样做?感谢,

1 个答案:

答案 0 :(得分:1)

查看AngularJS文档:https://docs.angularjs.org/api/ng/filter/date

<p>{{customer.date | date :  "dd MMMM y"}}</p>