I am trying to figure out how to display this code in a more user friendlier manner for example instead of displaying as MM/DD ex. "12/20 " I would rather it say Name of day , first 3 letters of the month and the DD for example " Monday, Dec 20 " . Is that possible? Please find the code below.
/* js file for autocalculate shipping*/
(function() {
// estimate the delivery date
var dateEnd = 3;
var toDate = Date.today().addDays(dateEnd);
if (toDate.is().saturday() || toDate.is().sunday()) {
toDate = toDate.next().monday();
}
document.getElementById('toDate').innerHTML = toDate.toString('MM/dd');
})();