How to add a new datetime column to a spark dataFrame from existing timestamp column

User16790091296
Databricks Employee
Databricks Employee

I have a data frame in Spark that has a column timestamp. I want to add a new column to this data frame that has the DateTime in the below format created from this existing timestamp column.

“YYYY-MM-DD HH:MM:SS”