marksnell's Avatar
marksnell 4
1 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
3 years, 5 months ago

I need a PHP function that calculates the number of work days (Mon-Fri) so far this month.

There is something similar at http://www.webmasterworld.com/php/3207166.htm , but it is working from a different perspective. I was to call a function that says there have been 15 work days so far this month. If it allow for a list of public holidays, all the better.
Tip for best answer: M$2.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

5 Answers

0
harravi's Avatar
harravi | 3 years, 5 months ago
4
Ya didnt know only 110 charecters
I have the code here ..
http://avinasha1987.googlepages.com/myphpfunctions
source(s):
I used php.net manual and about.com for coming up with this code

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
harravi's Avatar
harravi | 3 years, 5 months ago Report

No problem. Any time

marksnell's Avatar
marksnell | 3 years, 5 months ago Report

Hmm, seems Mahalo is having problems with your answer, but I'd love to see your answer if you can try posting it again..

Thanks for the link, great work!

Report Abuse

Post Reply Cancel
0
garryvictor1's Avatar
garryvictor1 | 3 years, 5 months ago
4
in the link you have given try replacing return $workingDate with return $daysSoFar

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
bugsy's Avatar
bugsy | 3 years, 5 months ago
3
Calculate number of work days between 2 dates

The call to fill the Holidays array has Western Australian holidays in it, but I'm sure you can still get the idea.

http://snippets.dzone.com/posts/show/807

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
powerfulmask's Avatar
powerfulmask | 3 years, 5 months ago
4

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
druids's Avatar
druids | 3 years, 5 months ago
4

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates