Skip to contents

This function uses the lubridate::parse_date_time() function to determine the date of birth by trying

  • Month - Day - Year

  • Year - Month - Day

  • Day - Month - Year

Usage

clean.DoB(DoB)

Arguments

DoB

string with date of birth-like data information.

Value

date with determined date of birth

Examples

clean.DoB("03301995")
#> [1] "1995-03-30"
# "1995-03-30"

clean.DoB("03/30/1995")
#> [1] "1995-03-30"
# "1995-03-30"