Hi AllNeed help with DATEADD function as i'm running into an errorBelow is my SQL to derive start date of a month based on deliververydate feild.I'm running into error when i try to add 25 days to the start date of the month.DATEADD(m,DATEDIFF(m,0,convert(varchar(30),DATEADD (month , @count*3 ,SR.DeliveryDate))),0)
When i want to add 25 days to the start date of a month getting an errorError SQLDateAdd(day,(DATEADD(m,DATEDIFF(m,0,convert(varchar(30),DATEADD (month , @count*3 ,SR.DeliveryDate))),0)),25)
Error MessageArgument data type datetime is invalid for argument 2 of dateadd function.What do i need to change to make it workThanks in advance