moment node js set date code example
Example 1: format a date moment
moment(testDate).format('MM/DD/YYYY');
Example 2: moment set time
const date = "2017-03-13";
const time = "18:00";
const timeAndDate = moment(date + ' ' + time);
console.log(timeAndDate);