title: how to convert the date format 'YYYY-MM-DD' to ddMMyy in pyspark?
body: <p>I tried to convert the date format 2018-07-12 to ddMMyy using to_date but i get null after converting the dateformat</p>
  
  <pre><code>df = spark.createDataFrame([('2018-07-12',)], ['Date_col'])
  
  df = df.withColumn('new_date',to_date('Date_col', 'ddMMyy'))
  </code></pre>
  
  <p>I need to use this logic to convert the dataframe column. I am new to the spark programming and tried lot of solutions but nothing helps.</p>
  
  <p>I need to concat the ddMMyy from one column and hhss from other column</p>
  
  <p>Any help please?</p>