hi, James Hicks£¡ <? echo date("Y-m-d",strtotime("next Saturday")); ?> I got "1970-01-01"! Perhaps you missing give me the function strtotime().
==================================================== Hi,Jennifer Goodie, Your function is very perfect!Thank you very much,I tested it and succeed! BTW,Can you pro it in another way? I say,I got "2003-28-06",but I like "2003-28-6",needn't the "0" before the month,is it difficult?If not,I'd like you to give me another function without '0' before the month! Thank you! ======= 2003-06-24 20:36:00 you wrote£º======= >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 >> [EMAIL PROTECTED] >> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-06-25 > >. = = = = = = = = = = = = = = = = = = = = ¡¡¡¡¡¡Thanks for your kindness. ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡poetbox [EMAIL PROTECTED] ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-06-25 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php