|
Posted by NC on 09/27/84 11:49
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]
|