Remove Dashes from Date in SQL

You can use the SQL function REPLACE to remove dashes from a date. Here is an example:

Assuming the date field is date_column, the following SQL statement can be used to remove the dashes in the date:

SELECT REPLACE(date_column, '-', '') AS cleaned_date
FROM your_table;

This will replace all dashes in the date_column with blank strings, returning a clean date without dashes.

bannerAds