moment js 8 hours of day code example Example: moment to javascript date let now = moment() let now = now.toDate()