access_time 7 months ago languageEnglish
more_vert

Convert String to Date using Spark SQL

visibility 3,425 comment 0
In Spark, function to_date can be used to convert string to date. This function is available since Spark 1.5.0. SELECT to_date('2020-10-23', 'yyyy-MM-dd'); SELECT to_date('23Oct2020', 'ddMMMyyyy'); Refer to the official documentation about all the datetime patterns.  ...
thumb_up 0

comment Comments

No comments yet.

Forum discussions for column Spark.

Follow Kontext

Get our latest updates on LinkedIn or Twitter.

Want to contribute on Kontext to help others?

Learn more