I have a numeric vector that I want formatted as dates,
it currently looks like
head(EDD$DateofDesignation, 5)
[1] NA 31418 34799 34799 34799
as.Date(EDD$DateofDesignation, "%m%d%Y")
Error in charToDate(x) :
character string is not in a standard unambiguous format
In that case, it looks like this field represents the number of days from a particular starting point, a common date encoding from Excel. If so, you can convert the numbers to dates by specifying the appropriate origin date.