T-SQL Solution:
Use DATEADD
function on the converted datetime value.
Try this:
select @sdtend = dateadd( day, 1, convert( datetime, @dtend, 104)
Refer to:
- CONVERT ( data_type [ ( length ) ] , expression [ , style ]
)
- Converts an expression of one data type to another.
- DATEADD (datepart , number , date )
- Returns a specified date with the specified number interval (signed integer) added to a specified datepart of that date.