I have dataframe like below and using pyspark 2.4
Name doj
kevin 08/15/2013
George 06/21/2014
df.printSchema()
-- Name (String)
-- dob (String)
I would like to convert doj to YYYY-MM-DD format and make sure i need to convert the doj to Datetype instead of String using pyspark.Is there any specific function available ? I appreciate your response