Assuming you are using a MySQL database, you can use the date function
update yourtable
set yourColumnName = date(yourColumnName)
In SQL Server, try using the Convert Function
update yourtable
set yourColumnName =CONVERT(date, yourColumnName)
or
update yourtable
set yourColumnName CONVERT(varchar(10),yourColumnName,104)
otherwise you can use a function LEFT
like
update yourtable
set yourColumnName =LEFT (yourColumnName, 10)
SQL FIDDLE
source
share