Version: 1.0
Type: Function
Category: Calendars/Dates
License: GNU General Public License
Description: Start and End of Week
//determine if given timestamp is within this week function WithinWeek($TimeStamp) { $StartOfWeek = mktime(0,0,0,date("n"),(date("j")-date("w")),date("Y")); $EndOfWeek = mktime(23,59,59,date("n"),(date("j")+(6-date("w"))),date("Y")); return ($TimeStamp > $StartOfWeek && $TimeStamp < $EndOfWeek); }