How to include Moment.js in Ionic4


#1

Hi all,

I want to know how to include Moment.js in my Ionic 4 project.

Moment

Thanks.


#2

Just install the momentJS

npm install moment --save

And import in your .ts file, there is no need to import in your module.

import * as moment from 'moment';