Is there any way to convert below string to a standard R date class object?
Date_String = \"19th January 2020\"
Any pointer appreciated.
Date_String <- "19th January 2020" # Using BASE R Date_String <- sub("st|nd|rd|th", "", Date_String) as.Date(Date_String, format = "%d %B %Y") #> [1] "2020-01-19" # Using Lubridate package lubridate::dmy(Date_String) #> [1] "2020-01-19"