Convert a date type to the 'SLF numeric format'
Source:R/convert_date_types.R
convert_date_to_numeric.Rd
Convert a date to the 'SLF numeric format' - YYYYMMDD
See also
Other date functions:
calculate_stay()
,
compute_mid_year_age()
,
convert_numeric_to_date()
,
end_fy()
,
end_fy_quarter()
,
end_next_fy_quarter()
,
fy_interval()
,
is_date_in_fyyear()
,
last_date_month()
,
midpoint_fy()
,
next_fy()
,
start_fy()
,
start_fy_quarter()
,
start_next_fy_quarter()
Examples
convert_date_to_numeric(as.Date("2021-03-31"))
#> [1] 20210331