how to add moment.js to javascript file code example Example: moment to javascript date let now = moment() let now = now.toDate()