RE: [PHP] Date conversion problems

From: Date: Tue, 27 Aug 2002 12:46:11 +0000
Subject: RE: [PHP] Date conversion problems
Groups: php.general 
Request: Send a blank email to php-general+get-114245@lists.php.net to get a copy of this message
> 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]"; That's what I thought I might have to do. It's an alternative, but a clunky one. Thanks Matt. <<mktime() will not work beyond mid-August of 2038 on 32-bit machines.>> And there's the confirmation from Richard. It actually goes back to 1969. Thanks also to David and anyone else I missed. I'm going to try the MySQL date format that Richard and Matt suggested. But, if all else fails, I'll go with the array that they suggested, as well. Thanks again, guys.

« previous php.general (#114245) next »