[PHP] Displaying dates

2002-04-25 Thread Craig
How can i display a dynamic page showing last month and next month and the month before eg this moth is ?php echo date(j-M-Y H:i); ? how do i add 1 to the month or -1 to the month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Displaying dates

2002-04-25 Thread Justin French
I strongly recommend reading the date section of the manual... it takes all of 5 minutes, and you would have come across strtodate(): http://www.php.net/manual/en/function.strtotime.php ... which can accept almost any English date/time phrase (like next month), and convert it to a Unix time

Re: [PHP] Displaying dates

2002-04-25 Thread heinisch
At 25.04.2002 11:46, you wrote: How can i display a dynamic page showing last month and next month and the month before eg this moth is ?php echo date(j-M-Y H:i); ? how do i add 1 to the month or -1 to the month? Several methods mktime() where you put last month(s) via (date(m) -1) getting

Re: [PHP] Displaying dates

2002-04-25 Thread Justin French
etc? - Original Message - From: Justin French [EMAIL PROTECTED] To: Craig [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 1:07 PM Subject: Re: [PHP] Displaying dates I strongly recommend reading the date section of the manual... it takes all of 5 minutes, and you would have come