Well,
according to the docs , you have a built-in filter in angular called date :
<p>{{Date.now() | date:'yyyy'}}
will give out:
<p>2013</p>
In this case, any format string can be documented yyyy . In the example you specified, this would be:
{{date | date: 'MMM-dd-yyyy'}}
source share