On Thu, Oct 25, 2012 at 3:06 PM, Ron Piggott
<ron.pigg...@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/

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

Reply via email to