title: pyspark dataframe : TypeError : to_date() takes exactly 1 argument (2 given)
body: <p>Can someone help to resolve below issue :</p>
  
  <p>I am trying to convert the string to date format in pyspark </p>
  
  <pre><code>datadf1 = datadf1.withColumn('vehicle_last_service_date_temp', to_date(datadf1.vehicle_last_service_date,"mm/dd/yyyy"))
  
  TypeError: to_date() takes exactly 1 argument (2 given)
  </code></pre>