week number

  • Thread starter Thread starter Keith
  • Start date Start date
Try using the DatePart function. For example:

Dim intWeekNum As Integer

intWeekNum = DatePart("w", MyDate)

Be sure to read up in Help about DatePart. It include optional arguments to
specify firstdayofweek and firstweekofyear, which would have an impact on
what it returned.

Hope that helps!

David
 

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