You are here: Re: still having problems with dates « PHP Programming Language « IT news, forums, messages
Re: still having problems with dates

Posted by Jonathan Crawford on 11/04/05 19:04

thanks ever so much,
that was just what I needed and it does
make sense to me now.

thanks

jc

--
===============
Jonathan Crawford
jc@tgsi.net
===============
"Peter van Schie" <vanschie.peter@gmail.com> wrote in message
news:436b5b7b$0$11069$e4fe514c@news.xs4all.nl...
> Jonathan Crawford wrote:
>> I am niew to pho and am having trouble with dates.
>>
>> I can format a date ok
>> so $today=date('d M Y' )
>> gives me 2 Nov 2005
>>
>>
>> $dateval is a mysql date
>> yyyy-mm-dd hh:nn:sss (2005-10-26 13:32:09)
>> $today=date('d M Y' ,$dateval)
>> gives me something like 1 july 1970
>
> Hi Jonathan,
>
> Try:
>
> $today=date('d M Y', strtotime($dateval));
>
> HTH.
> Peter.
>
> --
> http://www.phpforums.nl

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация