angular 9 use moment function inside component code example
Example: moment use in angular
npm install --save moment
import * as moment from 'moment';
...
let myMoment: moment.Moment = moment("someDate");
npm install --save moment
import * as moment from 'moment';
...
let myMoment: moment.Moment = moment("someDate");