Skip to content
Prev 367115 / 398506 Next

Converting Excel Date format into R-Date formats

Hi Jeff,
Most likely the "Event Date" field is a factor. Try this:

df$Event.Date <- as.Date(as.character(df$Event.Date),
 "%d-%b-%y")

Also beware of Excel's habit of silently converting mixed date formats
(i.e. dd/mm/yyyy and mm/dd/yyyy) to one or the other format. The only
way I know to prevent this is to stick to international (yyyy-mm-dd)
format in Excel.

Jim
On Mon, Feb 13, 2017 at 11:23 AM, Jeff Reichman <reichmanj at sbcglobal.net> wrote: