Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 add one day to the current date

Author  Topic 

luarit
Starting Member

6 Posts

Posted - 2012-05-24 : 06:07:37
Hi all,

A stupid question...

How can I add one day to the current date in a select. I want something similar to add one month to current date, but with days:

something like:

select TO_CHAR (ADD_MONTHS (SYSDATE, -1), 'DD-MM-YYYY')
from dual

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-05-24 : 06:13:17
looks like oracle but these forums are about MS SQL Server.

You can try dbforums.com/oracle


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2012-05-30 : 03:56:17
select TO_CHAR (SYSDATE+1, 'DD-MM-YYYY')

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -