var date = new Date(),
day = date.getDate(),
month = date.getMonth()+1;
if (10 == month && 31 == day) {
document.body.style.backgroundColor = "#FF9100";
}
Notice I added one (1) because the getMonth() method returns the month from 0 to 11 for the specified date, according to local time.