RE: [PHP] Week of month

From: Date: Thu, 01 Nov 2001 09:57:24 +0000
Subject: RE: [PHP] Week of month
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73130@lists.php.net to get a copy of this message
How about; echo "It is week ".((int)(date("j")/7)+1)." of the month.<br>"; > -----Original Message----- > From: Jon Farmer [mailto:jonfarmer@enta.net] > Sent: Thursday, 1 November 2001 20:14 > To: PHP Masters; Sheni R. Meledath > Subject: Re: [PHP] Week of month > > > > Is there any way to find out the week of the month. Today is in the first > > week of month. > > > > That is, a function like weekofmonth() which displays 1 today & 2 next > week. > > No builtin function in PHP. You will need to search to see if some kind and > generous soul has published their code for this purpose or write your own. > Remember the actual first day of a week can be country specific. > > Regards > > Jon > > > -- > Jon Farmer > Systems Programmer, Entanet www.enta.net > Tel 01952 428969 Mob 07763 620378 > PGP Key available, send blank email to pgpkey@bctech.co.uk

« previous php.general (#73130) next »