• Databricks Community
  • Data Engineering
  • Re: Convert date to integer

-werners-
-werners-
Esteemed Contributor III
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎03-09-2023 04:51 AM

I'd cast it to a unix timestamp.

https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.unix...

0 Kudos
Reply
Powered by Khoros