Get Start + End Date of a given Week number

  • Thread starter Thread starter Nick Chan
  • Start date Start date
N

Nick Chan

Hello, How do I get the start date, and end date of a given week
example, Week 20, year 2004.
 
Hi Nick,
Just a thought, you could try something like:

Dim datDatum as date
Dim intWkNo as integer
datDatum = DateSerial(Year(Now), 1, 1)

Do while Day(datDatum)<>"Mon"

DateAdd(DateInterval.Day,1,datDatum)

Loop

StartDate=DateAdd(DateInterval.WeekOfYear, intWkNo, datDatum)



Doug
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top