Re: date HELP !!!!!

From: Date: Mon, 23 Jul 2001 07:52:03 +0000
Subject: Re: date HELP !!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59147@lists.php.net to get a copy of this message
Hello Yamin, Monday, July 23, 2001, 9:27:46 AM, you wrote: YP> hi, YP> how do i check that the current date is the end of month YP> Thanks in Advance If you want to check how long is current month and use this value later you can use this: $month=("m"); //can be like this depend on if you scrolling between moths. If yes variable $month must be recieved from link. $d=27; while ($d <= 32) { $mon = date("m",mktime(0,0,0,$month,$d,$rok)); if ($month != $mon) { $daylast = $d-1; $d=33; } else { $d++; } } I hope it helps. -- Best regards, Daniel mailto:daniel@rezny.sk

« previous php.general (#59147) next »