I have a column exit_date with varchar like 5/21/2008 0:00
and I need to update it to a string like YYYYMMDD
, any way to do that?
5/21/2008 0:00 ==> 20080521
1/1/2007 0:00 ==> 20070101
How to do something like
select convert('5/21/2008 0:00', 'YYYYMMDD').