Calculates the number of days in the month
rvn_num_days_month(date)
object in date format
number of days in the month
This method includes leap years if they exist in the specified month.
rvn_num_days
for calculating the number of days between
two dates
See original code on post in Stack Overflow the number of days in a month