Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: excluded weekends Post Reply Post New Topic
<< Prev Page  of 2
Author Message
fairy princess
Newbie
Newbie
Avatar

Joined: 15 Aug 2008
Location: United Kingdom
Online Status: Offline
Posts: 21
Quote fairy princess Replybullet Posted: 22 Jan 2009 at 8:16am
i have done that so sorry not been using it that long
Many Thanks the tooth fairy
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Jan 2009 at 8:45am
That alright. I am  just getting a handle on using this type of formula myself but try this...
In a formula field copy this and replace the to date fields, drop it into your report to see the results and verify them.

Local DateTimeVar d1 := {YourBeginDateFieldHere};

Local DateTimeVar d2 := {YourEndDateFieldHere};

DateDiff ("d", d1, d2) -

     DateDiff ("ww", d1, d2, crSaturday) -

     DateDiff ("ww", d1, d2, crSunday)

 

If anyone else wants to correct my syntax please do as this is not my comfort zone Confused



Edited by DBlank - 22 Jan 2009 at 8:47am
IP IP Logged
<< Prev Page  of 2
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.