Re: [PHP4BETA] date not correct
| From: | ZioBudda | Date: | Thu, 13 Jan 2000 16:20:13 +0000 |
| Subject: | Re: [PHP4BETA] date not correct | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9109@lists.php.net to get a copy of this message | ||
Tnx. Now it works...
On Thu, 13 Jan 2000, Sascha Schumann wrote:
> 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
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
Sul Grande Mazinger girava Linux, su Boss Robot un sistema operativo
Microsoft.
--
Michel <ZioBudda> Morelli michel@enter.it
http://www.ziobudda.net
Italian Linux FAQ http://faq.ziobudda.net/
Italian Linux Press http://www.ziobudda.net/ILP/