Determine Week Number From Date 2

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
The following code is a simple replacement for "Determine Week Number from Date", (http://www.freevbcode.com/ShowCode.ASP?ID=5369). This is a one line replacement using the Format function.

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

Declarations:

Code: