"getDate" is a poor name. It should be "getDayOfMonth". Just saying.