Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining what the week number is

Status
Not open for further replies.

dsmart16

IS-IT--Management
Joined
Nov 30, 2004
Messages
12
Location
CA
Help,

Hi there, is there a formula that figures out what the week number is based on a date that the user enters

I've got two text boxes
txtDate
txtWeekNumber

When the user enters in the date, I want the week number to automatically display ... if possible.

Thanks
Dave
 
How are ya dsmart16 . . . . .

There's [blue]alot of controversy[/blue] about WeekNumber. Companies use it differently, what constitutes the first week of a year and so on.

The [purple]Format[/purple] function calculates a decent WeekNumber. In the [blue]ControlSource[/blue] of [purple]txtWeekNumber[/purple], copy/paste the following:
Code:
[blue]   = Format([txtDate],"ww")[/blue]

For a [blue]more absolute function[/blue] see the link below (at the bottom):

Determine Week Number from Date

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top