Date to Week # fct

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • andy

    Date to Week # fct

    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

    #2
    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]


    [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 :

    Comment

    • andy

      #3
      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




      Comment

      Working...