monthlength(
DATE
)

The monthlength( function computes the length (number of days) of a month.


Parameters

This function has one parameter:

date – is a number representing the date.


Description

This function calculates the number of days in a month.

monthlength(date("9/12/95")) ☞ 30
monthlength(date("2/1/2012")) ☞ 29
monthlength(date("2/1/2011")) ☞ 28

Note: These examples assume that the system’s Date & Time preferences are set to the standard US date format. If a non-US format, the date values would need to be adjusted appropriately.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0