moment format yyyy-mm-dd hours and minute code example Example: moment now format var date = moment().format('MM/DD/YYYY');