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!

Formula for Dates 1

Status
Not open for further replies.

PBS2

Programmer
May 17, 2004
43
GB
I have two formulas on my report @FromDate and @ToDate. These two dates are the from/to date range for the report. The report always displays a weeks worth of data from the @FromDate (always a Sunday) to the @ToDate (always a Saturday).

If the @ToDate is a known date how can I calculate the @FromDate using the value of @ToDate.
 
I don't know if I got you right:
You have a formula @ToDate that returns a date (alsways a Saturday) and are looking for a way to calculate the @FromDate (which is supposed to be always the Sunday before @ToDate) ?

You could try to use
{@ToDate}-6;
as calculation in your @FromDate formula - this should at least work with CR8.5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top