Spark sql timestamp to date. pyspark. format: literal string, optional format to use to convert date values. TimestampType using the optionally specified format. Returns: Column. In this tutorial, I will show you a PySpark example of how to convert timestamp to date on DataFrame & SQL. Equivalent to col. functions. In those scenarios we can use to_date and to_timestamp to convert non standard dates and timestamps to standard ones respectively. Since DataFrames integrate seamlessly with Spark SQL, you can apply the same logic in a familiar syntax. types. swhqkrpl0ygqssgk0f5bcbsfgrgryjt8usgwzafxile6