Convert input in day-month-year format to date

as_dmy(x)

Arguments

x

Input variable

Value

Date variable of class Date

Examples

as_dmy("1-2-2014")
#> [1] "2014-02-01"