I was looking to convert the following character string in a date format:
string <- '22APR2020'
date <- as.Date(string, format='%d%b%y')
date
>>> NA
Unfortunately, the result is NA
and I need to convert it as a date in order to being able to calculate the time between two dates.
Thanks you