Re: Date conversion problems
| From: | Matt | Date: | Mon, 26 Aug 2002 21:45:57 +0000 |
| Subject: | Re: Date conversion problems | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114177@lists.php.net to get a copy of this message | ||
>From: "Matt" <mschroebel@epooch.com>
>To: <Liam.Gibbs@dfait-maeci.gc.ca>; <php-general@lists.php.net>
>Sent: Monday, August 26, 2002 5:42 PM
>Subject: Re: [PHP] Date conversion problems
> > From: <Liam.Gibbs@dfait-maeci.gc.ca>
> > To: <php-general@lists.php.net>
> >Sent: Monday, August 26, 2002 3:58 PM
> >Subject: [PHP] Date conversion problems
> mktime generally only works thru 2037. Why not create an array of the
> months, and index in:
> $months = array('Jan','Feb',....);
> $enddate = explode("-", $datereuslt[0]);
> $finaldate = $months[$enddate-1] . "-$enddate[1]";
Ooops, should have been:
$months = array('Jan','Feb',....);
$enddate = explode("-", $datereuslt[0]);
$finaldate = $months[$enddate[1]-1] . "-$enddate[0]";