Skip to contents

Date -> calmonth (character)

Usage

date_to_calmonth_c(x = lubridate::today())

# S3 method for default
date_to_calmonth_c(x)

# S3 method for character
date_to_calmonth_c(x = lubridate::today())

# S3 method for Date
date_to_calmonth_c(x = lubridate::today())

Arguments

x

a Date object or string, in the form of 'yyyy-mm-dd'

Value

calmonth ("XX")

Examples

date_to_calmonth_c("2021-08-11")
#> [1] "08"
date_to_calmonth_c(lubridate::today())
#> [1] "12"