Link to home
Start Free TrialLog in
Avatar of lunchboxbill
lunchboxbill

asked on

Retrieve a Date from a given Week Number.

Hi,

I have an asp function that is required to retrieve the date, when only the day of the week, and the week number are provided.

For example, to get todays date the function is called as

//
               getDateFromWeek("wed",22)
//

as today is wednesday and this week is week number 22

the function itself so far looks like

//
      Function getDateFromWeek(dayOfWeek,weekNo)
      
            'get the date range for the week number of the current year
            
            getDateFromWeek = date
      
      End Function
//      

as u can see - it needs a bit of work and i'm stumped!

any suggestions will be greatly apprciated!

many thanks in advance.
Avatar of alorentz
alorentz
Flag of United States of America image

Can't say I really like a function like that, nor why have it...but see DATEPART:

http://www.w3schools.com/vbscript/func_datepart.asp
ASKER CERTIFIED SOLUTION
Avatar of WMIF
WMIF

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial