moment js create with customm hours code example
Example 1: moment js print date
moment(testDate).format('MM/DD/YYYY');
Example 2: moment get day
var check = moment(n.entry.date_entered, 'YYYY/MM/DD');
var month = check.format('M');
var day = check.format('D');
var year = check.format('YYYY');