date.daysInMonth

Syntax date.daysInMonth (date)

Params date is a valid Frontier date or a string that can be coerced to a date.

Action Returns the number of days in the specified month

Returns The number of days in the specified month

Examples date.daysInMonth ("3/1/2000")

   » 31

date.daysInMonth (clock.now ())

   » 30 // this month has 30 days

See Also date.weeksInMonth

Discuss