|
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]
|