angular material using moment.js code example Example: angular moment npm install --save moment ... import * as moment from 'moment';