RES: [PHP] Date Function
| From: | Thiago Pojda | Date: | Fri, 22 Feb 2008 19:55:36 +0000 |
| Subject: | RES: [PHP] Date Function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269896@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; ?>
capital H should do it
-----Mensagem original-----
De: VamVan [mailto:vamseevan@gmail.com]
Enviada em: sexta-feira, 22 de fevereiro de 2008 16:48
Para: php-general@lists.php.net
Assunto: [PHP] Date Function
Hi All,
Greetings!!
A small PHP Script for help
<?php
$date_format = '02/22/2008 14:00:00';
$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.
Thanks
V
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php