note 4268 modified in date by ronabop

From: Date: Fri, 01 Sep 2000 04:28:49 +0000
Subject: note 4268 modified in date by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3874@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); http://www.php.net/manual/function.date.php

« previous php.notes (#3874) next »