When I used the following code, the Date Object was wrong.
Date
Date date = new Date(day.getYear(), day.getMonth(), day.getDay());
Can
you should use getDate() instead of getDay() method to get the day because getDay() return the day of week not the day of month