Re: Week of month

From: Date: Thu, 01 Nov 2001 10:49:37 +0000
Subject: Re: Week of month
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73138@lists.php.net to get a copy of this message
Well seeing as Monday of this week was the 29th of October is this week the first of November or the last of October? I think the United Nations set out a specification for determining the week number of the year but not sure if they have a spec for the week of the month. 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 ----- Original Message ----- From: "Andrew Braund" <abraund@dingoblue.net.au> To: "PHP Masters" <php-general@lists.php.net> Sent: Thursday, November 01, 2001 9:57 AM Subject: RE: [PHP] Week of month > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#73138) next »