Angular 2 Pipe that transforms a date sting into a formatted date using Moment.js
Usage:
<div>Year: {{'2016-09-14T19:00Z' | dateToFormat: 'YYYY'}}</div>
Will render to:
<div>Year: 2016</div>
See Moment.js docs for full display options.
Feel free to contribute.