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.
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,
'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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.w3schools.com/vbscript/func_datepart.asp