How to format number to date in SQL?
To convert the number to date in SQL, you can use the below SQL query:
TRY_CONVERT(DATE, SUBSTRING(COLUMN_NAME, 7, 2) + '-' + SUBSTRING(COLUMN_NAME, 5, 2) + '-' + SUBSTRING(COLUMN_NAME, 1, 4), 105) AS FormattedDate
FormattedDate is just the name of the number column
See Also