Week of Year

  • Thread starter Thread starter Pascal
  • Start date Start date
P

Pascal

Hi,
does anybody know how i can get the actual week of the year
with the datetime object? Is there an other way?

thanks
pascal
 
Pascal said:
does anybody know how i can get the actual week of the year
with the datetime object? Is there an other way?

Have a look at Calendar.GetWeekOfYear.
 
I would guess at:

WeekofYear= (int)dt.DayOfYear / 7;

or something like that anyway

hope it helps
 

Ask a Question

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.

Ask a Question

Back
Top