I have an excel file which I am trying to read in R using read_excel function. The dates field in my data are pivoted up i.e. they are as columns. See screenshot below
The problem is when R reads the data file it converts the date fields columns to something like below.
Now, I have extracted the dates in a vector vDates and trying to convert them back to dates using below code , but it gives me error.
Please let me know what is it that I am missing here!.
Appreciate the help.