date (filter)
Improve this Doc View Source date
- filter in module ng
Formats date
to a string based on the requested format
.
format
string can be composed of the following elements:
-
'yyyy'
: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)登录查看完整内容