To convert the string "20210810" to a date data type include the date format of the string in the to_date function, e.g:
to_date(col("date"),"yyyyMMdd")
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Whats the best way to convert this string in Date data type in spark sql
20210810 to 08/10/2021
I am keep getting null with T0_Date Function
To convert the string "20210810" to a date data type include the date format of the string in the to_date function, e.g:
to_date(col("date"),"yyyyMMdd")