Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to convert YYYYMMDD string to date in databricks SQL end point?

How to convert YYYYMMDD string to date in databricks SQL end point?

Input values:- 1. 20230804

           2. 20230805

output values :- 1. 2023-08-04

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

             2. 2023-08-05

>Solution :

SELECT
  TO_DATE(your_column_name, 'yyyyMMdd') as formatted_date
FROM
  your_table_name;
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading