date range to current date at specific time syntax question 
Author Message
 date range to current date at specific time syntax question

I have a cr8 report running that prompts the user to enter a date
range.  Regardless of the dates entered, I want to restrict data to
include data only up to the current date as of 3 a.m.

How can I accomplish this in Crystal?



Sun, 28 Mar 2004 22:58:47 GMT  
 date range to current date at specific time syntax question

I have a cr8 report running that prompts the user to enter a date
range.  Regardless of the dates entered, I want to restrict data to
include data only up to the current date as of 3 a.m.

How can I accomplish this in Crystal?
 >>

Set up a formula called End_Date that looks like thie
If Maximum({?DateRange}) > CurrentDate then CurrentDate else
Maximum({?DateRange})

Then in your select formula you would say:

I think I would actually set up another formula to stirp off the Begin  Date as
well just to make it look neater (and only do the calculation once), but it
should work the way I explained it.

Charliy



Tue, 30 Mar 2004 00:14:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Q:get current date and then create date range

2. Crystal Reports 8.5 date range parameter field - record selection that includes null date range

3. Compare date in form with date/time in form with date/time in database

4. {{ Date / Time Arithmetic Syntax Question }}

5. Date / Time arithmetic syntax question

6. Displaying the Current Date and Current Time

7. Filter for actual work within specific date range

8. Generating reports from a specific date range

9. Syntax for Date Ranges....

10. Date Range Syntax....

11. Date within a Range of Dates

12. Create Date array using Date range

 

 
Powered by phpBB® Forum Software