I'm having a small problem with the parsedate package in R, I have a large dataset with A LOT of messy dates that it is handling extremely well. However, with ambiguous dates, i.e. those where the date and month are both < 12, it will default to parse them as mm/dd/yyyy. I would instead prefer it to assume dd/mm/yyyy instead in those cases... Has anyone had any joy with this?
For clarity I have also tried lubridate and as.Date but with the amount of different messy date formats in my data they were just not viable options.
Simplified code I have run:
parse_date("09-06-2021")
Gives "2021-09-06 UTC"
as an output whereas I want "2021-06-09 UTC"
Thanks in advance!