R-Help Forum I have a data set that contains a date field but the dates are in two formats 11/7/2016 dd/mm/yyyy 14-07-16 dd-mm-yy How would I go about correcting this problem. I'm thinking something like .. for (i in 1:length(myDat$date)){ if ((myDat$date [i]) = <some sort of format> { <format one way, <else format another way> } } Or something like this Sincerely Jeff Reichman (314) 457-1966 [[alternative HTML version deleted]]