JoeConley
New Contributor II

The following worked for me:

df.withColumn("tx_date", to_date(unix_timestamp($"date", "M/dd/yyyy").cast("timestamp")))