Hi,
While running this qurey,
DECLARE @Month varchar(2),@Year varchar(4)
SET @Month = '02' SET @Year = '2012'
select convert(datetime,@Year+@Month+cast(DAY(Duedate) as varchar(2))) from sample
Im getting error
Conversion failed when converting date and/or time from character string. How to solve this error