Convert input in day-month-year-hour-minute-second format to date-time

as_dmy_hms(x)

Arguments

x

Input variable

Value

Date-time variable of class Date

Examples

as_mdy_hms("1-1-2014 12:15:01")
#> [1] "2014-01-01 12:15:01 UTC"