Penggunaan momen dalam sudut
npm install --save moment
import * as moment from 'moment';
...
let myMoment: moment.Moment = moment("someDate");
GutoTrosla
npm install --save moment
import * as moment from 'moment';
...
let myMoment: moment.Moment = moment("someDate");
npm install moment --save
import * as moment from 'moment';
let todayDate = moment().format('M/D/YYYY');