DateTime.DayOfWeek is an enum. using
CInt(DateTime.DayOfWeek) will give you its numeric representation.
If you mean "week 12 of the year", then you need to do the calc yourself:
DateDiff(DateInterval.WeekOfYear, DateTime.Now, New
DateTime(DateTime.Now.Year, 1, 1))
You probably want to add one to that so that Jan1 is on the "first" week,
instead of the "zeroth" week
Also note the "FirstDayOfWeek" and "FirstWeekOfYear" optional parameters.
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.