ovember 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.";
>
> > -Original Message-
> > From: Jon Farmer [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 1 Novemb
Please find attached a very good date class.
I can't remeber where I got it from and who wrote it but it's pretty good.
M:
> --
> > 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 toda
How about;
echo "It is week ".((int)(date("j")/7)+1)." of the month.";
> -Original Message-
> From: Jon Farmer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 1 November 2001 20:14
> To: PHP Masters; Sheni R. Meledath
> Subject: Re: [PHP] Week of
> 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
4 matches
Mail list logo