Convert input in day-month-year format to date
as_dmy(x)
x
Input variable
Date variable of class Date
as_dmy("1-2-2014")