Answers for "SPARK SQL CONVERT DATE TO STRING YEAR MONTH"

SQL
1

spark sql convert string to date

spark.sql("""
  SELECT TO_DATE(CAST(UNIX_TIMESTAMP('12/31/2049', 'MM/dd/yyyy') AS TIMESTAMP)) AS newdate"""
).show()
Posted by: Guest on February-11-2021

Code answers related to "SPARK SQL CONVERT DATE TO STRING YEAR MONTH"

Code answers related to "SQL"

Browse Popular Code Answers by Language