I have following dataframe in r
Date Count
2016-12-30 17:25:00 34
2016-12-04 10:25:00 31
I want to change the format to following and want to remove seconds from Date
Desired Dataframe would be
Date Count
30-12-2016 17:25 34
04-12-2016 10:25 31
I am doing following but because of space inbetween date it is returning me wrong output
substr(df$Date,1,nchar(df$Date)-3)
How can I do it in R?