Date.DaysInMonth

About

Returns the number of days in the month from a DateTime value.

Syntax

  
Date.DaysInMonth(dateTime as datetime) as nullable number  

Arguments

Argument Description
dateTime The DateTime to check against.

Example

Date.DaysInMonth(DateTime.FromText("2012-03-01")) equals 31