I tried to convert the date format 2018-07-12 to ddMMyy using to_date but i get null after converting the dateformat
df = spark.createDataFrame([('2018-07-12',)], ['Date_col'])
df = df.withColumn('new_date',to_date('Date_col', 'ddMMyy'))
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.
I need to concat the ddMMyy from one column and hhss from other column
Any help please?