How do I change the format of the date object
from "%Y/%m/%d"
to "%d/%m/%Y"
. I have tried the below-mentioned code
without much success.
as.Date(bank$date,format="%d/%m/%Y")
[1] "2007-11-02" "2007-11-09" "2007-11-16" "2007-11-23" "2007-11-30" "2007-12-07"
[7] "2007-12-14" "2007-12-20" "2007-12-28" "2008-01-04" "2008-01-11" "2008-01-18"
[13] "2008-01-25" "2008-02-01" "2008-02-08" "2008-02-15" "2008-02-22" "2008-02-29"
Thank you for your help.