/**
 * Custom Core
 *
 * This file defines additions to Javascript's core objects.  Developers need
 * to be careful not to overwrite existing methods.
 *
 */

// Get the name of the day of the week
Date.prototype.getDayName = function() {
	var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
	return days[this.getDay()];
}

// Get the name of the month
Date.prototype.getMonthName = function() {
	var months = ['January','February','March','April','May','June','July','August','September','October','November','December'];
	return months[this.getMonth()];
}

Date.prototype.getMonthShortName = function() {
	var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
	return months[this.getMonth()];
}

Date.prototype.getEndecaDate = function() {
	return  this.getDayName() + ', ' + this.getDate() +'-' + this.getMonthShortName() + '-' + this.getFullYear() + ' 00:00:00 EDT';
}

