Re: Date Function

From: Date: Sat, 23 Feb 2008 11:10:38 +0000
Subject: Re: Date Function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269941@lists.php.net to get a copy of this message
$start_date = date("Y-m-d h:i:s", strtotime($date_format)); echo $start_date; ?> output is 2008-02-22 02:00:00 but not 2008-02-22 14:00:00 How can i get my output as 2008-02-22 14:00:00.
Use H instead of h. And try the manual. -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code

« previous php.general (#269941) next »