moment(testDate).format('MM/DD/YYYY');
var day = moment.unix(1318781876); //seconds var day = moment(1318781876406); //milliseconds // and then: console.log(day.format('dddd MMMM Do YYYY, h:mm:ss a')); // "Sunday October 16th 2011, 9:17:56 am"
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');