note 30204 added to function.strtotime
| From: | frebelo at webmail dot ipv dot pt | Date: | Mon, 10 Mar 2003 20:00:02 +0000 |
| Subject: | note 30204 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45074@lists.php.net to get a copy of this message | ||
* I hope this will help you:
//ex: today is 12Th March 2003
$ = strftime("%Y-%m-%d", strtotime("next week sunday"));
//return 2003-03-23
* i try this code to get "this month", but the function "today +1 month":
strtotime("this month"));
this code resolve the problem:
strtotime("this -0 month"));
* this code return the last day of the month
strftime("%Y-%m-%d", mktime(0,0,0,date("m")+1, 0, date("Y")));
--
http://www.php.net/manual/en/function.strtotime.php
http://master.php.net/manage/user-notes.php?action=edit+30204
http://master.php.net/manage/user-notes.php?action=delete+30204
http://master.php.net/manage/user-notes.php?action=reject+30204