Working days between two dates

Beautiful, exactly what I needed!

Thanks all.

-----Original Message-----
From: Michael Barry [mailto:mbarry@...]
Sent: Tuesday, March 23, 2004 1:35 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Working days between two dates


Here you go:

http://support.businessobjects.com/library/kbase/articles/c2007889.asp

Good luck.

Michael

Michael Barry
Aspacia Systems Inc
866.566.9600
312.803.0730 fax
http://www.aspacia.com/


-----Original Message-----
From: Mike Lowe [mailto:MLowe@...]
Sent: Tuesday, March 23, 2004 9:44 AM
To: Vantage@yahoogroups.com
Subject: [Vantage] Working days between two dates

This one is for the report writing gurus on the list.

I was wondering if anyone has done the following in either Report Builder OR
Crystal. Given two dates, calculate the number of days between the dates
excluding weekend days.

Mike Lowe
Corporate I.S. Manager
Connor Manufacturing Services
MLowe@...
P: (949) 713-3328




------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer
at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/PhFolB/TM
---------------------------------------------------------------------~->

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links







Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links



Yahoo! Groups Sponsor

ADVERTISEMENT
<http://rd.yahoo.com/SIG=12ccfp3fp/M=267637.4673019.5833256.1261774/D=egroupweb/S=1705007183:HM/EXP=1080164095/A=1945638/R=0/SIG=11t2rh2cf/*http://www.netflix.com/Default?mqso=60178383&partid=4673019> click here
<http://us.adserver.yahoo.com/l?M=267637.4673019.5833256.1261774/D=egroupweb/S=:HM/A=1945638/rand=199584359>


_____

Yahoo! Groups Links


* To visit your group on the web, go to:
http://groups.yahoo.com/group/vantage/


* To unsubscribe from this group, send an email to:
vantage-unsubscribe@yahoogroups.com <mailto:vantage-unsubscribe@yahoogroups.com?subject=Unsubscribe>


* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]
This one is for the report writing gurus on the list.

I was wondering if anyone has done the following in either Report Builder OR Crystal. Given two dates, calculate the number of days between the dates excluding weekend days.

Mike Lowe
Corporate I.S. Manager
Connor Manufacturing Services
MLowe@...
P: (949) 713-3328
I may be going about this in an overly complicated way in RB but.....
it should be doable between using the straight Date1 - Date2 calculation to get the number of days between two dates...
and the WEEKDAY(Date1) function to determine the day of the week (1=Sun, 7=Sat) for the two dates

I might go about it by calculating the days from Date1 until the next Monday and days to Date2 from prior Monday
then find the date for these Mondays (add or subtract results from above to Date1 & Date2)
then use those "Monday" dates to determine the number of weeks (MonDate1 - MonDate2) / 7 (should be whole number)
then multiply whole weeks by 5
then add back stray weekdays on each end of the partial working weeks

Then again there may be an easier way to directly use the WEEKDAY funciton like Day1 - Day2 and add to INTEGER((Date1 - Date2) / 7) * 5 but I am not completely sure how that would work - perhaps a job CASE function to determine an adjustment amount.

Some ideas anyway. I think Crystal as some more powerful Date functions for stuff like this.
-Todd C.

-----Original Message-----
From: Mike Lowe [mailto:MLowe@...]
Sent: Tuesday, March 23, 2004 11:44 AM
To: Vantage@yahoogroups.com
Subject: [Vantage] Working days between two dates


This one is for the report writing gurus on the list.

I was wondering if anyone has done the following in either Report Builder OR Crystal. Given two dates, calculate the number of days between the dates excluding weekend days.

Mike Lowe
Corporate I.S. Manager
Connor Manufacturing Services
MLowe@...
P: (949) 713-3328




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links



Yahoo! Groups Sponsor

ADVERTISEMENT
<http://rd.yahoo.com/SIG=12c0rb79i/M=267637.4673018.5833253.1261774/D=egroupweb/S=1705007183:HM/EXP=1080161742/A=1945637/R=0/SIG=11tfh3gpg/*http://www.netflix.com/Default?mqso=60178397&partid=4673018> click here
<http://us.adserver.yahoo.com/l?M=267637.4673018.5833253.1261774/D=egroupweb/S=:HM/A=1945637/rand=479086014>


_____

Yahoo! Groups Links


* To visit your group on the web, go to:
http://groups.yahoo.com/group/vantage/


* To unsubscribe from this group, send an email to:
vantage-unsubscribe@yahoogroups.com <mailto:vantage-unsubscribe@yahoogroups.com?subject=Unsubscribe>


* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]
Hello Mike,

Try this
http://support.businessobjects.com/communityCS/TechnicalPapers/scr_businessd
ays.pdf.asp
<http://support.businessobjects.com/communityCS/TechnicalPapers/scr_business
days.pdf.asp>

Dan Shallbetter
States Electric Mfg.

-----Original Message-----
From: Mike Lowe [mailto:MLowe@...]
Sent: Tuesday, March 23, 2004 11:44 AM
To: Vantage@yahoogroups.com
Subject: [Vantage] Working days between two dates


This one is for the report writing gurus on the list.

I was wondering if anyone has done the following in either Report Builder OR
Crystal. Given two dates, calculate the number of days between the dates
excluding weekend days.

Mike Lowe
Corporate I.S. Manager
Connor Manufacturing Services
MLowe@...
P: (949) 713-3328







[Non-text portions of this message have been removed]
Here you go:

http://support.businessobjects.com/library/kbase/articles/c2007889.asp

Good luck.

Michael

Michael Barry
Aspacia Systems Inc
866.566.9600
312.803.0730 fax
http://www.aspacia.com/


-----Original Message-----
From: Mike Lowe [mailto:MLowe@...]
Sent: Tuesday, March 23, 2004 9:44 AM
To: Vantage@yahoogroups.com
Subject: [Vantage] Working days between two dates

This one is for the report writing gurus on the list.

I was wondering if anyone has done the following in either Report Builder OR
Crystal. Given two dates, calculate the number of days between the dates
excluding weekend days.

Mike Lowe
Corporate I.S. Manager
Connor Manufacturing Services
MLowe@...
P: (949) 713-3328




------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer
at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/PhFolB/TM
---------------------------------------------------------------------~->

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links