1var day = moment.unix(1318781876); //seconds
2var day = moment(1318781876406); //milliseconds
3
4// and then:
5
6console.log(day.format('dddd MMMM Do YYYY, h:mm:ss a'));
7
8// "Sunday October 16th 2011, 9:17:56 am"
1var check = moment(n.entry.date_entered, 'YYYY/MM/DD');
2
3var month = check.format('M');
4var day = check.format('D');
5var year = check.format('YYYY');