Fixed date function. Changed call from getDay to getDate.