daysInMonth

Calculates the number of days in a month.

Syntax

daysInMonth(date)

Parameters

date

Specifies a numeric value representing the date.

Returns

Returns the number of days in the month of the date that is passed in.