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