How to use moment.js library in Angular

npm install --save moment
import * as moment from 'moment';
let myMoment: moment.Moment = moment("someDate");

References
https://stackoverflow.com/questions/35166168/how-to-use-moment-js-library-in-angular-2-typescript-app

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.