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!

Need MonthtoDate without weekends

Status
Not open for further replies.

glarkin

IS-IT--Management
Feb 26, 2002
175
US
I'm selecting records for my report using MonthtoDate but I want to exclude the weekends. Is this possible using Crystal 10?

Thanks!
 
You may try the function DayofWeek().By default the DayofWeek() returns 7 for Saturday and 1 for Sunday.

So something like not(DayofWeek(Date) in [1,7])
 
Sure, try this:

{YourDateField} in Monthtodate and
day({YourDateField}) in 2 to 6

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top