vlibDate

vLIB logo

6.26. daysInMonth()

Function Description
  daysInMonth (string month [, string year])

Returns the number of days in the month for the parameters month and year.
Alternatively you can pass a timestamp as the month parameter and omit the year parameter for the same result.

The timestamp parameter is a vlibDate timestamp. For more information, please see the IMPORTANT section.

Example

   echo $date->daysInMonth($date->now()); // will echo days in current month