xxxxxxxxxx
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');
xxxxxxxxxx
const moment = require('moment');
const date = moment(); // Current date and time
const formattedDayName = date.format('dddd'); // Retrieves the name of the current day
console.log(formattedDayName); // Outputs the current day's name