R/conversion_date_calmonth_calyear.R
date_to_calmonth_n.Rd
Date -> calmonth (numeric)
date_to_calmonth_n(x = lubridate::today()) # S3 method for default date_to_calmonth_n(x) # S3 method for character date_to_calmonth_n(x = lubridate::today()) # S3 method for Date date_to_calmonth_n(x = lubridate::today())
a Date object or string, in the form of 'yyyy-mm-dd'
calmonth
date_to_calmonth_n("2021-08-11") #> [1] 8 date_to_calmonth_n(lubridate::today()) #> [1] 6