Question : CONVERT(char(10),[DATE_FIE<wbr />LD], 110) Question

I was wondering if anyone knows why the DATA_TYPE has to be char(10). I tried to use other data types and each type I tried produced an error. For example, I used smalldatetime(4), smalldatetime, and datetime(8) of which none worked.

Thank you in advance.
CF Jordan

Answer : CONVERT(char(10),[DATE_FIE<wbr />LD], 110) Question

Let's look at your example:
CONVERT(char(10),[DATE_FIELD], 110)

Note that you are using the 110 style. this returns a character string in a specified format.

Char(10) is not really the only type you could use, but it would have to be a character of some type. Such as varchar(20), nvarchar(20), etc.
Random Solutions  
 
programming4us programming4us