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!

How to Find the Last day of a Month 1

Status
Not open for further replies.

sreeramnavale

Programmer
Feb 18, 2004
40
US
Friends,

I have a date field (Orders.Order Date) in my datebase.

I want to print the last day of the month for that Order Date on my Crystal Report.

Please help me in putting a right formula for that.

SN
 
Try:

dateserial(year({Orders.Order Date}), month({Orders.Order Date})+1,01)-1

-LB
 
Thanks for that.. I needed a formulae to show data from a fixed start date up to the end of the previous month. Was able to fix the example given and get it sorted out...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top