title: Why am I missing in converting the dates to factor?
body: <p>my data with 2 columns looks like this:</p>
  <p><a href="https://i.stack.imgur.com/oFF5n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oFF5n.png" alt="My data look like this" /></a></p>
  <p>I am trying to convert the date (factor) into date.</p>
  <p>I have tried so many tricks and techniques and essentially none of them are working. Can you see what I am doing wrong? Please see my various attempts below:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>##Attempt 1
  #variation 1
  dec18Apr20$date &lt;- as.Date(dec18Apr20$date, format = "%m/%d/%y" )
  #variation 2
  dec18Apr20$date &lt;- as.Date(dec18Apr20$date, "%m/%d/%y" )
  #variation 3
  dec18Apr20$date &lt;- as.Date(dec18Apr20$date, "%y/%d/%m" )
  #variation 4
  dec18Apr20$date &lt;- data.frame(as.Date(dec18Apr20$date, format = "%m/%d/%y" ))
  #variation 5
  dec18Apr20$date &lt;- as.Date(factor(dec18Apr20$date, format = "%m/%d/%y" ))
  #Variation 6
  dec18Apr20$date &lt;- as.Date(factor(dec18Apr20$date, "%m/%d/%y" ))
  #variation 7
  dec18Apr20$date &lt;- as.Date(dec18Apr20$date, "%y/%d/%m" )
  
  ##Attmpt 2
  strptime(dec18Apr20$date, "%m/%d/%y")
  
  ##Attemp 3 
  #variation 1
  mdy(as.character(dec18Apr20$date))
  #variation 2
  mdy(dec18Apr20$date)
  
  
  ##Attempt 4
  parse_date_time(dec18Apr20$date, "dmy")
  
  
  ##Attempt 5
  library(zoo)
  as.Date(as.yearmon(dec18Apr20$date))</code></pre>
  </div>
  </div>
  </p>
  <p>UPDATE: output for dput(head(dec18Apr20)) is as follow:</p>
  <p><a href="https://i.stack.imgur.com/JeGC2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JeGC2.png" alt="Output for dput()" /></a></p>