Moment js ionic

npm install moment --save
# And import in your .ts file, there is no need to import in your module.
import * as moment from 'moment';
GutoTrosla