Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Work days between two dates
Oldest Post First
Newest Post First
Author
Message
crmetal1
Newbie
Joined: 30 Oct 2012
Online Status: Offline
Posts: 5
Topic: Work days between two dates
Posted: 30 Oct 2012 at 10:16am
I am using the DateDiff function but I would like to have it calculate only work days between two dates.
Any ideas??
Edited by crmetal1 - 08 Nov 2012 at 10:56am
IP Logged
crmetal1
Newbie
Joined: 30 Oct 2012
Online Status: Offline
Posts: 5
Posted: 08 Nov 2012 at 10:56am
I revised my question.
Any ideas??
IP Logged
aharonmc
Newbie
Joined: 02 Apr 2012
Location: United States
Online Status: Offline
Posts: 10
Posted: 12 Nov 2012 at 7:48am
Lots of good info on that at these two adresses:
http://tek-tips.com/faqs.cfm?fid=4465
http://www.kenhamady.com/form01.shtml
IP Logged
Sastry
Moderator
Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Posted: 13 Nov 2012 at 10:54pm
HI
If you want to exclude only Saturday and Sunday then use below formula :
Local DateTimeVar d1 := {Orders.Order Date};
Local DateTimeVar d2 := {Orders.Ship Date};
DateDiff ("d", d1, d2) - (DateDiff ("ww", d1, d2, crSaturday) - DateDiff ("ww", d1, d2, crSunday))
Thanks,
Sastry
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.