moment js convert time to date 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');