note 4268 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:36:18 +0000
Subject: note 4268 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20038@lists.php.net to get a copy of this message
I had some trouble with the date("t") that was supposed to return the number of days in this current month. But it didn't work with my version of PHP, I had to come up with another solution - here is is (and yes it is seen before on this list!) : $days_in_month = date("j", mktime(0,0,0,date("n")+1, 1, date("Y"))-1);

« previous php.notes (#20038) next »