@conclurer/date-to-format-pipe
v1.1.3
Published
Pipe that transforms a date sting into a formatted date using moment.js
Downloads
19
Readme
Angular 2 Date to Format Pipe
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.