I need help in T-SQL.
I am using DATEADD function and I want to add 6 months to a date. But
it does not return me the rusults, which I want
e.g. SELECT DATEADD(m,'2004 0630') returns 20041230
which is logical correct? But I want it to return end of month (i.e.
20041231)
Any help in this context will be highly appreciated
Abdul N. Khan
I am using DATEADD function and I want to add 6 months to a date. But
it does not return me the rusults, which I want
e.g. SELECT DATEADD(m,'2004 0630') returns 20041230
which is logical correct? But I want it to return end of month (i.e.
20041231)
Any help in this context will be highly appreciated
Abdul N. Khan
Comment