hi friend ,
I took joindate field in table as smalldatetime type now I want to convert it in String type and formate is dd/mm/yyyy .how to convert it . and again i want to change this String type to date type .how can i do it
Wait, I maybe misunderstood your question.
Do you want to convert string to datetime or datetime to string?
To convert datetime to string do following.
[PHP]select convert(varchar(20), getdate(), 103)[/PHP]
To convert String to Datetime with Server available format
[PHP]select convert(smalldatetime, '12/04/2007')[/PHP]
Good Luck.