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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

weekofyear / datepart??

Status
Not open for further replies.

ikkedm

Programmer
Apr 15, 2003
8
0
0
BE
hey

i have a date and i want to know in which week of year (1 to 53) this
is.


i know a function datepart with weekofyear, but i don't find how they works

someone know how i have to do it?

i'm working in vb.net

thx

Michaël
 
MsgBox(DatePart(DateInterval.WeekOfYear, System.DateTime.Now, FirstDayOfWeek.Sunday))

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top