Re: how to get the date of this Saturday all the time?
| From: | James Hicks | Date: | Wed, 25 Jun 2003 00:36:26 +0000 |
| Subject: | Re: how to get the date of this Saturday all the time? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152679@lists.php.net to get a copy of this message | ||
How about
date("Y-m-d",strtotime("next Saturday"));
James Hicks
On Tuesday 24 June 2003 08:01 pm, poetbox wrote:
> hi,php-general£¬
>
> We have a meeting at every Saturday,I'd like to post the news and
> write the date of this Saturday every week,how can I get the date of
> Saturday. For example,today is Monday, and today is 2003-23-06,I'd like
> to get the Saturday date "2003-28-06" ;If today is Friday on
> "2003-16-08",I'd like to get the date of "2003-17-08",the date is a
> var got
> by a special function,How to WRITE THE FUNCTION? Any thoughts or
> suggestions would be greatly appreciated!Thanks in advance.
>
>
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡poetbox
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡phplist@enorth.com.cn
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-06-25