>From: "Matt" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Monday, August 26, 2002 5:42 PM
>Subject: Re: [PHP] Date conversion problems


> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> >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]";



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to