Two parameterized functions that can select the desired month, to obtain the last day of the month, and the remaining days of the selected month, works in server and client action.