moment js convert string to date dd/mm/yyyy code example
Example 1: moment format date dd/mm/yyyy
moment(new Date()).format("DD/MM/YYYY")
Example 2: moment now format
var date = moment().format('MM/DD/YYYY');
moment(new Date()).format("DD/MM/YYYY")
var date = moment().format('MM/DD/YYYY');