note 83738 deleted from function.date by tularis

From: Date: Thu, 09 Feb 2012 21:00:56 +0000
Subject: note 83738 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186007@lists.php.net to get a copy of this message
Note Submitter: diego at diego dot eng dot br ---- I made a small code to get the last working day of the month: <?php $times = strtotime(date("Y")."-".date("m")."-".date("t")); for ($lastworkingday=0;$lastworkingday==0;$times-=86400) if (date("w",$times)!=0 && date("w",$times)!=6) $lastworkingday = date("j",$times); print $lastworkingday; ?>

« previous php.notes (#186007) next »