var days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; var dayName = days[new Date().getDay()];