By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

Date to Week # fct

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
andy wrote:
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 ?
http://www.php.net/date
many thanks in advance,


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 :
Jul 17 '05 #2

P: n/a
"Pedro Graca" <he****@hotpop.com> a écrit dans le message news:
c4*************@ID-203069.news.uni-berlin.de...
andy wrote:
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 ?


http://www.php.net/date
many thanks in advance,


You're welcome

--

Oups, sorry, I missed this line in my manual :-/
thx,
--
andy


Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.