In my dataframe I have a variable in a date format like this: "Fri Oct 23 15:51:20 +0000 2020". I want to make it a bit simpler, so it looks like this 2020-10-23the Y-M-D format.
What would be the right way to do it?
I first converted the variable to a character variable and the substring it, then I have a "Oct 23 15:51:20 +0000 2020". How would I remove the timestamp so I could convert to the Y-M-D format?
Thanks in advance!