moment js example with my string Example: moment now format var date = moment().format('MM/DD/YYYY');