"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thursday 10 October 2002 18:37, Jack wrote:
> > Dear all
> > I'm trying to make a script which will show the month before current
month!
> > Is there anyway i can do this?
> >
> > Example :
> >
> > Current                    Pervious
> >
> > October                    September
>
> date("F", strtotime("last month"));
To find more about PHP's date/time functions go here:

http://www.php.net/manual/en/ref.datetime.php

in particular look at:

date() -- Format a local time/date
mktime() -- Get UNIX timestamp for a date
time() -- Return current UNIX timestamp
strtotime() --  Parse about any English textual datetime description into a
UNIX timestamp


--
JJ Harrison
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to