Re: Easiest way to convert date?

From: Date: Thu, 24 Oct 2002 02:08:40 +0000
Subject: Re: Easiest way to convert date?
Groups: php.general 
Request: Send a blank email to php-general+get-121185@lists.php.net to get a copy of this message
Yep. Not in the manual. I pulled this from a library of functions I have on this end. <?php function DoMySQLTimeStamp($theObject, $NamedFormat) { $parsedDate=date($NamedFormat, mktime(substr($theObject,8,2),substr($theObject,10,2),substr($theObject,12,2 ),substr($theObject,4,2),substr($theObject,6,2),substr($theObject,0,4))); return $parsedDate; } ?> <?php echo oMySQLTimeStamp( $GetCustHistInfo->Fields("AccountActivationDate"), 'l, F jS Y H:i:s') ?> -----Original Message----- From: Jeff Lewis <jeff@hyrum.net> To: php-general@lists.php.net <php-general@lists.php.net> Date: Wednesday, October 23, 2002 4:48 PM Subject: [PHP] Easiest way to convert date? >Is the easiest way to change this: > >2002-10-18 12:41:20: > >into this: > >October 18th, 2002: > >by changing it into a timestamp and then using strftime? > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#121185) next »