Re: date-time things...hard ones
| From: | Henrik Hansen | Date: | Sun, 12 Nov 2000 11:35:12 +0000 |
| Subject: | Re: date-time things...hard ones | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24856@lists.php.net to get a copy of this message | ||
Siim Einfeldt aka Itpunk <siim_e@pshg.edu.ee> wrote:
> lets suppose that I know the year and the month, but I want to know the
> week numbers in that month and also
try the following by Brian Paulson from this list:
Function getWeek(){
//Get the day of the year.
$dayofyear = date("z");
//Devide Day of year by 7 the number of days in a week
//and round to nearest whole number.
$weeknum = round($dayofyear/7);
return $weeknum;
}
print(getWeek());
this should work.
> the exact dates and weekdays for this time period. How would you do it?
look here:
http://marc.theaimsgroup.com/?l=php-general&m=96537545106050&w=2
--
Henrik Hansen