Fix for date, using getDay() instead of getDate()