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!

Month End Date

Status
Not open for further replies.

Arthur1

MIS
Apr 8, 2003
28
US
Hi,

Does anyone know how to create a Business Objects object that can always return the current Month end? Any help would be apprciated. Thank you.
 
Hi,

Do you want to return the Current Month or Current Months End Date????

Sri
 
In ORACLE:

SELECT LAST_DAY(SYSDATE) FROM DUAL


T. Blom
Information analyst
tbl@shimano-eu.com
 
Did not find a function yet in DB2 , but with calenderfile at hand it would be something like:

Select max(date) from calender,sysdummy where
month(current date) = month(date)

T. Blom
Information analyst
tbl@shimano-eu.com
 
Hi,

I am using Sybase. I want fro example if today is 06/04/2003 I want it to return 06/30/2003.

Any help would be appreciated.
 
If you need the last day of month in Bo instead of databse then create a variable/formulae using
=LastDayOfMonth(CurrentDate()).This gives you the last day of month.

vijay
 
I used the dateadd funtion of Sybase:

select convert(datetime,convert(char,dateadd(day, -1, dateadd(month, 1, dateadd(day,(-datepart(day,getdate())+1), getdate() ))),101))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top