Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevous or Next Date Function

Status
Not open for further replies.

tnrao

Programmer
Dec 2, 2002
2
CA
Hi
Is there any direct function available for finiding the Previous Date or Next Date of Today's date??
Ex :If Todays date is 01/04/2003
i want Prev date as 31/03/2003

ADvance Thanks
TNrao

Regds--->Tnrao
 
Hi,
Try:

SELECT CURRENT DATE - 1 DAY
FROM SYSIBM.SYSDUMMY1

which should do the trick

Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top