Question : Converting the date dd.mm.yyyy to yyyymmdd Format

I have a  date column as below:
Col1                            Col2  Copied the values from Col1 and Format Cell;Custom;tt.dd.yyyy
31.01.2004 00:00         31.01.2004
04.11.2004 00:00         04.11.2004
10.01.2005 00:00         10.01.2005
16.12.2004 00:00         16.12.2004
01.03.2005 00:00         01.03.2005
02.03.2005 00:00         02.03.2005
02.03.2005 00:00         02.03.2005
14.03.2005 00:00         14.03.2005

How i can convert Col2 date tt.dd.yyyy to yyyymmdd so that i get 20040131 from 31.01.2004

thanks

Answer : Converting the date dd.mm.yyyy to yyyymmdd Format

The substitute thing dont work :P but I tested the last solution I posted and it does :)
Random Solutions  
 
programming4us programming4us