note 14896 deleted from function.getdate by bobby

From: Date: Fri, 08 Sep 2006 14:34:44 +0000
Subject: note 14896 deleted from function.getdate by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116908@lists.php.net to get a copy of this message
Note Submitter: hfuecks at hotmail dot com ---- If you wanted to find which day of the week corresponds to a particular date you could do something like this (for August 20th, 2001 - a Monday!) ; <? $timestamp = mktime(0,0,0,8,20,2001); $date = getdate ($timestamp); $dayofweek = $date['wday']; echo ( "$dayofweek" ); ?> This returns a 1 (0 being Sunday)

« previous php.notes (#116908) next »