var gsDayNames = [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]; var d = new Date("2013-07-31"); var dayName = gsDayNames[d.getDay()]; //dayName will return the name of day