Re: [PHP4BETA] date not correct
| From: | Sascha Schumann | Date: | Thu, 13 Jan 2000 14:41:46 +0000 |
| Subject: | Re: [PHP4BETA] date not correct | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9102@lists.php.net to get a copy of this message | ||
On Thu, Jan 13, 2000 at 03:13:20PM +0100, ZioBudda wrote:
> Hi, I'm using CVS version and I have this piece of script:
> $query2 = "select count(*) from sito where ";
> $query2 .= " data_inserimento between ";
> $query2 .= "'";
> $query2 .= date("d-m-Y",mktime(0,0,0,
> date("m"),date("d")-5,date("y")));
^
Use date("Y"). "y" is the two-digit year.
> $query2 .=
> "'".date("d-m-Y",mktime(0,0,0,date("m"),date("d"),date("y")))."'";
dito.
--
Regards,
Sascha Schumann
Consultant