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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Previous month First and Last Day

Status
Not open for further replies.

PatelRam

Programmer
Aug 20, 2003
87
US
Friends...!!!

How do I find Previous month's first and last day from current date.

Thanks,

Ram
 
Last day of last month:

SELECT CURRENT DATE - (DAY(CURRENT DATE) DAYS) from SYSIBM.SYSDUMMY1

Ties Blom
Information analyst
 
First day of last month:

SELECT (CURRENT DATE - (DAY(CURRENT DATE) DAYS)) - 1 MONTH + 1 DAY from SYSIBM.SYSDUMMY1


Ties Blom
Information analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top