use getDate instead of getDay