You are here: Re: how to convert yyyy-mm-dd to yyyy-mmm-dd « All PHP « IT news, forums, messages
Re: how to convert yyyy-mm-dd to yyyy-mmm-dd

Posted by Kentor on 09/28/44 11:50

Spasiba, jalko shto you tebya nety vremya zakonchit calendar =/
NC wrote:
> Kentor wrote:
> >
> > is there some function to do that? i know date() plays with numbers
> > but im not sure how to use it for a time that is not the current one...
>
> date() takes two arguments, format and timestamp; the latter, if
> omitted, defaults to current time:
>
> http://www.php.net/date
>
> > i need to change 2007-02-02 to 2007-feb-02 for example...
>
> $yyyymmdd = '2007-02-02';
> $yyyymmmddd = date(Y-M-d'', strtotime($yyyymmdd));
>
> Cheers,
> NC

 

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

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