title: Converting date format from d/m/y time to d/m/y
body: <p>I have data input coming in the form of d/m/y time eg: "3/27/2017 1:20:15 AM" and I want to just have d/m/y to display 3/27/2017.</p>
  
  <p>I have seen different techniques on how to achieve this and have tried 3 different types however I recieve NA as the new output and for the later I get the "Error in charToDate(x) : 
    character string is not in a standard unambiguous format"
  error.</p>
  
  <p>Here is an my example code:</p>
  
  <pre><code>df &lt;- data.frame(Date = "3/27/2017 1:20:15 AM")
  
  df$Date &lt;- as.POSIXct(as.character(df$Date), format = "%d/%m/%Y")
  
  df$Date &lt;- as.Date(df$Date, "%d/%m/%Y")
  
  df$Date &lt;- format(as.Date(df$Date), "%d/%m/%Y")
  </code></pre>