Does anyone know if there is a nifty way to tell ...
# announcements
v
Does anyone know if there is a nifty way to tell how many days in a given week are part of the month? The input would be a ZonedDateTime. ie. First week of july started on a Wednesday so the answer would be 5 (Java DayOfWeek gives Monday a value of 1). Same thing for the last week of the month (ends on a Friday) so we would get back 5 again. A date like the 9th would return 7