wrong date
| From: | Rodrigo Meurer | Date: | Thu, 26 Sep 2002 19:11:58 +0000 |
| Subject: | wrong date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117762@lists.php.net to get a copy of this message | ||
Hi!
Someone knows why is this returning 1969-12-31 ???
$day = 13;
$month = 10;
$year = 2002;
echo date("Y-m-d",mktime (0,0,0,$month,$day,$year));
And MySQL also does the same when I insert '2002-10-13' in a date field!!!
::: R o d r i g o M e u r e r ::::
rodrigo.meurer@base51.com.br
B a s e 5 1 - W e b p r o j e c t s
Tel 51 3332.8813 / Fax 51 3321.1405
: : : www.base51.com.br : : :