moment convert from one format to another code example Example: moment now format var date = moment().format('MM/DD/YYYY');