Skip to contents

Get the first and last day of a year.

Usage

first_day_of_year(year = NULL)

last_day_of_year(year = NULL)

Arguments

year

Numeric value with year (format: YYYY).

Value

Character string with date (format: YYYY-MM-DD).

See also

Examples

first_day_of_year(2000)
#> [1] "2000-01-01"
last_day_of_year(2020)
#> [1] "2020-12-31"