example of moment library in javascript Example: moment to javascript date let now = moment() let now = now.toDate()