I am importing a data frame into R, but R is not recognizing the columns with the dates as being in dates format.
> mydata[1,1] [1] 1/1/2003 0:00 216332 Levels:
If you don't want to deal with Levels, try this:
First convert your data into character:
data<- as.character(mydata[1,1])
Then give the date format you need, for example:
date<- format(as.POSIXct(data, tz="EST"),"%Y-%m-%d %H")