note 85939 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 22 Mar 2009 18:47:01 +0000 |
| Subject: | note 85939 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152304@lists.php.net to get a copy of this message | ||
Note Submitter: nick at nick-web dot co dot uk
----
RE: wulf dot kaiser at mpimf-heidelberg dot mpg dot de code to work out fridays in a month. I
noticed one small error. It looks like the
<?php
if ($givenMonth != '12') {
$nextGivenMonth = "1";
$nextGivenYear = $givenYear + 1;}
?>
block was setting every month to 1 because it was not equal to 12. I changed that to <?php if
($givenMonth == '12') { ?>and now all is fine!
Now - to refine it so that it only shows Fridays on the 5th or after, until the 4th of the next
month.. Damm UK tax stuff!
=)
N