Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Exclude weekends for a particulat Date range Post Reply Post New Topic
Author Message
a4chan
Newbie
Newbie
Avatar

Joined: 07 Aug 2010
Location: United States
Online Status: Offline
Posts: 21
Quote a4chan Replybullet Topic: Exclude weekends for a particulat Date range
    Posted: 13 Aug 2010 at 6:31am
Hello,
 
I am working on a report and I need to exclude weekends(i,e saturday and sunday) for a date range.Can anyone tell me how this could be done.
 
Thanks
a4chan
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Aug 2010 at 11:28am
you mean you do not want to pull rows of data that have a date of a Sat or sunday or do you mean you want to calculate datediff excluding weekends?
IP IP Logged
a4chan
Newbie
Newbie
Avatar

Joined: 07 Aug 2010
Location: United States
Online Status: Offline
Posts: 21
Quote a4chan Replybullet Posted: 16 Aug 2010 at 10:06am
I dont want to pull rows of data that have a date sat or sun.
a4chan
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 Aug 2010 at 10:29am
not(weekday({table.Date}) in [1,7])
IP IP Logged
a4chan
Newbie
Newbie
Avatar

Joined: 07 Aug 2010
Location: United States
Online Status: Offline
Posts: 21
Quote a4chan Replybullet Posted: 17 Aug 2010 at 8:13am
thanks
a4chan
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.