Last working day of a month
- From: angelo@xxxxxxxxxxxxxxx ("Angelo Zanetti")
- Date: Thu, 4 Dec 2008 16:03:38 +0200
Hi all,
I am busy trying to figure out how to get the last working day in a month.
I was wondering if there was a script already written, but this is what I
imagine should work:
Get the current day and see if it's the last day of the month. If its true
check if it's a Saturday or Sunday if it's either of those 2 days then
return false else return true?
I also need to take public holidays into account. What would be the best
solution for that? Store the public holidays in a table and check if the
current day isn't a public holiday?
Any advice is appreciated.
TIA
Angelo
Web: http://www.elemental.co.za
.
- Follow-Ups:
- Re: [PHP] Last working day of a month
- From: Jochem Maas
- Re: [PHP] Last working day of a month
- From: "Andrew Ballard"
- Re: [PHP] Last working day of a month
- Prev by Date: Re: preg_match_all() help
- Next by Date: Re: [PHP] IE8 and HTML5
- Previous by thread: imagecreatefromgif & imagecolortransparent() ??
- Next by thread: Re: [PHP] Last working day of a month
- Index(es):
Relevant Pages
|