Connecting Tech Pros Worldwide Help | Site Map

Date to Week # fct

andy
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi all,

I'm searching a PHP function that would translate a date in the following
format yyyymmdd to the week number in the year...
ex : 20040128 => 5
i.e. jan 28th 2004 gives week nb 5 in 2004.

Does anyone have an idea ?

many thanks in advance,
--
andy


Pedro Graca
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Date to Week # fct


andy wrote:[color=blue]
> I'm searching a PHP function that would translate a date in the following
> format yyyymmdd to the week number in the year...
> ex : 20040128 => 5
> i.e. jan 28th 2004 gives week nb 5 in 2004.
>
> Does anyone have an idea ?[/color]

http://www.php.net/date
[color=blue]
> many thanks in advance,[/color]

You're welcome

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
andy
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Date to Week # fct


"Pedro Graca" <hexkid@hotpop.com> a écrit dans le message news:
c4jpju$2k75ea$2@ID-203069.news.uni-berlin.de...[color=blue]
> andy wrote:[color=green]
> > I'm searching a PHP function that would translate a date in the[/color][/color]
following[color=blue][color=green]
> > format yyyymmdd to the week number in the year...
> > ex : 20040128 => 5
> > i.e. jan 28th 2004 gives week nb 5 in 2004.
> >
> > Does anyone have an idea ?[/color]
>
> http://www.php.net/date
>[color=green]
> > many thanks in advance,[/color]
>
> You're welcome
>
> --[/color]
Oups, sorry, I missed this line in my manual :-/
thx,
--
andy




Closed Thread