Re: Date manipulation

From: Date: Thu, 25 Oct 2012 19:10:26 +0000
Subject: Re: Date manipulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-319592@lists.php.net to get a copy of this message
On Thu, Oct 25, 2012 at 3:06 PM, Ron Piggott <ron.piggott@actsministries.org> wrote: > > Is it possible for PHP to accept the following as a date: > > 04:11:22 Aug 21, 2011 PDT > > so I may output it as: > > gmdate(‘Y-m-d H:i:s’) > > - I want the time zone included Sure. <?php $ds = strtotime('04:11:22 Aug 21, 2011 PDT'); echo gmdate('Y-m-d H:i:s',$ds); ?> -- </Daniel P. Brown> Network Infrastructure Manager http://www.php.net/

« previous php.general (#319592) next »