Days in the Month

dtt_days_in_month(x)

Arguments

x

A Date or POSIXct vector.

Value

A integer vector of 28 to 31 indicating the days in the month.

See also

Examples

dtt_days_in_month(as.Date(c("2000-02-11", "2001-02-01")))
#> [1] 29 28