ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

4
Date Submitted Mon. Dec. 29th, 2008 2:11 PM
Revision 1
Helper ffxfiend
Tags "find date" | Date | PHP
Comments 0 comments
This function will let you find the Sunday, Monday, Tuesday, etc of a month and return to you that date.

It is a modification of a script I found online at this site: http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/.

The function takes three arguments, the month, year and the weekday you are looking for. The weekday is represented by an integer, 0 for Sunday, 1 for Monday and so on.