我想在AngularJS中结合使用预定义的可本地化日期格式和静态日期格式,如下所示:
<select ng-options="i as (i | date : 'shortDate, EEE') for i in dates"></select>
结果应为:
EN: 10/25/2010, Sat
DE: 25.10.2010, Sa.
...
我如何在Angular中实现这一目标?
答案 0 :(得分:2)
这会有用吗?
<select ng-options="i as ((i | date: 'shortDate') + (i | date: ', EEE')) for i in dates"></select>