Table
ID CardDate
001 09/01/2010
002 08/05/2010
DateFormat in the table : (mm/dd/yyyy)
I want to make a datediff between cardDate & systemDate
Query
Select id, datediff(carddate, curdate()) as actualdate group by id from table
The above query is showing a null value in actualdate column becuase carddate format is wrong.
How to change the Carddate format like this yyyy-mm-dd