I am having to convert dates in the following string format “24/9/2020” to DateTime format. DateTime does not deal with this basic format.
I have come up with the following solution that does this for the data I’m dealing with (all dates in this millennium), but I am sure there is batter way:
Reg.date_project_registered = replace.(Reg.date_project_registered,"/20"=>"-") #date format converions
Reg.date_project_registered = replace.(Reg.date_project_registered,"/"=>"-")
Reg.date_project_registered = DateTime.(Reg.date_project_registered)
Is there a better way?