isDay() functionality completed