import moment js from node moment code example Example: import * as moment from 'moment'; npm install moment-strftime