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

as_ymd_hm(x)

Arguments

x

Input variable

Value

Date-time variable of class Date

Examples

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