FAQ
Thanks ALL who have replied

On Fri, Feb 22, 2008 at 11:55 AM, Thiago Pojda
wrote:
$start_date = date("Y-m-d H:i:s", strtotime($date_format)); echo
$start_date; ?>

capital H should do it


-----Mensagem original-----
De: VamVan
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-general @
categoriesphp
postedFeb 22, '08 at 7:55p
activeFeb 22, '08 at 7:55p
posts1
users1
websitephp.net

1 user in discussion

VamVan: 1 post

People

Translate

site design / logo © 2022 Grokbase