JavaScript's getDay() rocks.