Re: how to get the date of this Saturday all the time?
| From: | Joseph Szobody | Date: | Wed, 25 Jun 2003 03:17:21 +0000 |
| Subject: | Re: how to get the date of this Saturday all the time? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152690@lists.php.net to get a copy of this message | ||
> date("Y-m-d",strtotime("next Saturday"));
That would give the Saturday for next week (2003-07-05). Try "this Saturday" or just
"Saturday".
date("Y-m-d",strtotime("this Saturday")); // Currently returns 2003-06-28
Joseph