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
 
Back
Top