note 19566 deleted from function.date by hholzgra

From: Date: Sat, 13 Apr 2002 20:02:02 +0000
Subject: note 19566 deleted from function.date by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29239@lists.php.net to get a copy of this message
A simple a short way to know if a given date is a weekend day or not can be the next one: $date = date ("w", mktime (0,0,0,3,3,2002)); $notweekend = ($date%6)?1:0; $notweekend will return 1 when the day is between Monday and Friday.

« previous php.notes (#29239) next »