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!

date range ??

Status
Not open for further replies.

PQTIII

IS-IT--Management
Sep 21, 2004
110
I want to set up a report to run from the first date of the month to the day before the current date. What is the formula that represents the first day of the current month?

Thanks
pt
Cr9
 
not sure if your are trying to get the first of the month based upon the current date or from an actual field from within your report, but this should give you what you are looking for.

--Will get you the first of the month based upon the current date

DateTime (Year(CurrentDate()), Month(CurrentDate()), 01)

--Will get the the first of the month from a date field in your report.

DateTime (Year({YourFieldHere}), Month({YourFieldHere}), 01)
 
Use a record selection formula like:

{table.date} in date(year({currentdate}), month(currentdate),1) to currentdate-1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top