Parsing a date from the week number of a given year from request post

Discussion in 'ASP General' started by J. Muenchbourg, Aug 9, 2003.

  1. I'm trying to get the date from a request-query post that contains a
    year (request("season") and a week number from that year
    (cint(request("gameweek"))+35) I added 35 to the week number because pro
    football usually starts on the 36th week of the year (if it doesn't,
    i'll figure that out later). The DatePart builtin function looks like it
    would be the best tool to use, but it doesnt parse what I want.
    I just want to do a simple display with something that resembles:

    response.write
    cdate(datepart(m,d((cint(request("gameweek"))+35)))request("season"))

    what steps am I missing?
    Thanks
    Muench

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    J. Muenchbourg, Aug 9, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    815
    Matthew Speed
    Nov 8, 2003
  2. Otuatail

    Week of year to full Year

    Otuatail, Dec 8, 2003, in forum: HTML
    Replies:
    4
    Views:
    1,130
    Toby A Inkster
    Dec 8, 2003
  3. Matt
    Replies:
    2
    Views:
    737
    Pete Becker
    Nov 8, 2003
  4. Matt
    Replies:
    3
    Views:
    914
    Richard Heathfield
    Nov 8, 2003
  5. Replies:
    4
    Views:
    424
    Jorgen Grahn
    Sep 17, 2005
  6. Reb

    get the week from the given date

    Reb, Sep 25, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    205
    Ravikanth[MVP]
    Sep 25, 2003
  7. Matt
    Replies:
    11
    Views:
    624
    Aaron Bertrand [MVP]
    Nov 8, 2003
  8. CJ Kucera

    Date::Manip week-of-year oddness

    CJ Kucera, Jul 14, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    223
    Steven Kuo
    Jul 15, 2004
Loading...