moment to javascript date

JavaScript
moment(testDate).format('MM/DD/YYYY');let now = moment()
let now = now.toDate()
Source

Also in JavaScript: