How do I properly display the date and time in AngularJS?(如何在AngularJS中正确显示日期和时间?)
The output below shows both the input and the output, with and without the AngularJS date filter:(下面的输出显示输入和输出,有和没有AngularJS日期过滤器:)
In: {{v.Dt}}
AngularJS: {{v.Dt | date:'yyyy-MM-dd HH:mm:ss Z'}}
This prints:(这打印:)
In: 2012-10-16T17:57:28.556094Z
AngularJS: 2012-10-16T17:57:28.556094Z
The desired display format is 2010-10-28 23:40:23 0400
or 2010-10-28 23:40:23 EST
(所需的显示格式为2010-10-28 23:40:23 0400
或2010-10-28 23:40:23 EST
)
ask by bsr translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…