0

I have this date format: 2016-04-14 and I want to change it to 14/4/16 This seems like a simple task but for some reason my strategy is not working. Here is my code: '''' df$Date <- as.Date(df$Date,format = "%d/%m/%y") ''''

Sam Kh
  • 35
  • 3

1 Answers1

1

If you want date in specific format use format :

format(as.Date(df$Date), "%d/%m/%y")
Ronak Shah
  • 377,200
  • 20
  • 156
  • 213