title: How to convert to vector with different date formats in R?
body: <p>I have a large dataframe that contains dates, however, they are in different formats and I want to convert the dates to a <code>dmy</code> format. I have tried using <code>as.Date</code> and different functions from lubridate but haven't been able to do so.</p>
  <p>Here is an example of how it looks like</p>
  <pre><code>bad_dates&lt;-c(29365, &quot;31/09/2000&quot;, &quot;05/062015&quot;)
  </code></pre>
  <p>here is how it should look like:</p>
  <pre><code>bad_dates&lt;-c(24-05-1980&quot;, 31-09-2000, 05-06-2015)
  </code></pre>
  <p>How can I format multiple dates with different formats into a single dmy format?</p>