note 30204 deleted from function.strtotime by sniper
| From: | sniper@php.net | Date: | Tue, 21 Oct 2003 11:02:27 +0000 |
| Subject: | note 30204 deleted from function.strtotime by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59006@lists.php.net to get a copy of this message | ||
Note Submitter: frebelo@webmail.ipv.pt
----
* 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")));