note 39539 added to function.date

From: Date: Sun, 01 Feb 2004 17:05:50 +0000
Subject: note 39539 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-64512@lists.php.net to get a copy of this message
@ monitio: What does your script return on the 7th of May this year? And on the 14th of May? Should both be 19, but I doubt it... I think you should change the first line of your function to this: if (date("m") > $m || (date("m") == $m && date("d") >= $d)) ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39539 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39539&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39539&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64512) next »