Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:30 AM
J. Muenchbourg
Guest
 
Posts: n/a
Default Parsing a date from the week number of a given year from request post


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!
  #2  
Old July 19th, 2005, 07:30 AM
Curt_C [MVP]
Guest
 
Posts: n/a
Default Re: Parsing a date from the week number of a given year from request post

Break it apart one function at a time.....
What results are you getting?

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"J. Muenchbourg" <jodaddy@canada.com> wrote in message
news:OiAg5VgXDHA.2236@TK2MSFTNGP10.phx.gbl...[color=blue]
>
> 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![/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles