Skip to contents

Convert a date to the 'SLF numeric format' - YYYYMMDD

Usage

convert_date_to_numeric(date)

Arguments

date

a vector of dates

Value

a vector of numerics where the number is of the form YYYYMMDD

Examples

convert_date_to_numeric(as.Date("2021-03-31"))
#> [1] 20210331