note 17197 added to function.mcal-days-in-month
| From: | jaeger at future-web dot at | Date: | Thu, 29 Nov 2001 12:41:10 +0000 |
| Subject: | note 17197 added to function.mcal-days-in-month | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21425@lists.php.net to get a copy of this message | ||
_note when you use mcal_days_in_month() with a none-leap-year and februar it returns 29 days.
$daysinmonth=mcal_days_in_month($month, $year);
if(!mcal_is_leap_year($year))
{
if($month == 02)
{
$daysinmonth = $daysinmonth - 1;
}
}
this script solve the problem
--
http://www.php.net/manual/en/function.mcal-days-in-month.php
http://master.php.net/manage/user-notes.php?action=edit+17197
http://master.php.net/manage/user-notes.php?action=delete+17197
http://master.php.net/manage/user-notes.php?action=reject+17197