Return date only...I need your help!
Hi,
I created this stored procedure in SQL 2000 to add 90 days to the current date, and return the new date:
CREATE PROCEDURE Get90Days
AS
SELECT DATEADD(day, 90, current_timestamp) AS "RETURNDAYS"
Run today, July 1, 2006, the procedure above returns this result:
2006-09-29 07:31:14.477
I need this procedure to return the date, only, like this:
09-29-2006
I tried using the convert switch to reformat the result but have not been successful.
What does this stored procedure need to look like to return just the date, like this:
09-29-2006
Thanks,
Bill
|