In pyspark is there a way to convert a dataframe column of timestamp datatype to a string of format \'YYYY-MM-DD\' format?
from pyspark.sql.functions import date_format df.withColumn("DateOnly", date_format('DateTime', "yyyy-MM-dd")).show()