Retrieve The Week Number For a Given Date

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Knut Skattebo

Version Compatibility: Visual Basic 6

More information:
This function will retrieve the week number for a given date. Simply call this function passing in a date string. The return value is an integer.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: