I am new to SQL Server(2008) and after going through all the blogs in google and posting this query i.e.
Commands to be converted for the below ones in date format data type only(not in char/varchar). 1. Remove timestamp. select cast(getdate() as date) <-- but it is in varchar format.
2. Syntax to convert the below result from Char to Date data type CONVERT(datetime,CONVERT(varchar,DATEADD(year,-2,GETDATE()),105),105)
Visakh,..Thanks for your prompt response. I am using one of the reporting tool. However it is not allowing me to parse the syntax 'Expression type is not compatiable with the object type'. However in DB it is working fine.
If i select the data type to char, then it is parsing.