date problem
| From: | Brian Feliciano | Date: | Wed, 31 Oct 2001 03:41:27 +0000 |
| Subject: | date problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10131@lists.php.net to get a copy of this message | ||
this is my code:
ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})
([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})",$rowsko[2], $pdate);
echo date("l, F j, Y [h:i:s A]",
mktime($pdate[4],$pdate[5],$pdate[6],$pdate[3],$pdate[2],2001));
$rowsko[2] is equal to "2001-10-31 10:55:02"
but the result was: Thursday, July 10, 2003 [10:55:02 AM]
i printed out $pdate[1] and it shows: 2001
how come it is always 2003 ? please help.
thanks.