add partition-by-month, fix last day of week
remove unused get-day-of-week fn