not part of this PR, but isn't `getDate` a very weird thing to be testing for? (afaik getDate returns the day-of-the-month)