This function is provided primarily to be used together with dbplyr when querying a database. It will also work in dplyr against data frames.

month(date)

Arguments

date

The date.

Value

The month

Examples

month(as.Date("2000-02-01"))
#> [1] 2