I am trying to convert a date column which is chr and is like
1/2/2019 or m/d/y
So I tried this code
as.Date(supsale$Date,format = %y-%m-%d)
But it just comes back with
Error: unexpected SPECIAL in "as.Date(supsale$Date, format = %y-%"
This is my dataset - https://www.kaggle.com/aungpyaeap/supermarket-sales
What am I doing wrong?