moment format to 12/12/2020 code example Example 1: moment now format var date = moment().format('MM/DD/YYYY'); Example 2: momentjs docs npm install moment