moment js toDate code example
Example 1: moment to date
moment().toDate();
Example 2: moment to javascript date
let now = moment()
let now = now.toDate()
Example 3: 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');