I want to convert this column to date as %m-%d-%Y-HMS, and remove the milliseconds. How to do this?
df <- tribble(
~date,
"Februar 1st 2021, 06:34:53.190",
)
Thanks in advance.
If you have locale same as the data that you have using lubridate
's mdy_hms
should work.
df$date <- lubridate::mdy_hms(df$date)