I have a dateset with different date formats (e.g., Nov. 24, 2014 & 7-Jul-14)
I tried as.Date(thd$SubmitDate, "%B. %d, %Y")
, but it seems that this is not enough.
Try
library(lubridate)
parse_date_time(v1, guess_formats(v1, c('mdY', 'dmy')))
#[1] "2014-11-24 UTC" "2014-07-07 UTC"
v1 <- c('Nov.24, 2014', '7-Jul-14')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With