daysInMonth

Syntax

daysInMonth(X)

Arguments

X is a scalar/vector of type DATE, DATEHOUR, DATETIME, TIMESTAMP or NANOTIMESTAMP.

Details

Return the number of days in the month for each element in X.

Return value: an integer

Examples

daysInMonth(2012.06.12T12:30:00);
// output
30

daysInMonth([2012.02.01,2013.12.05]);
// output
[29,31]