Calculate WeekOfYear from DateTime

using System;
using System.Globalization ;

namespace ConsoleApplication1
{
    class Class1
    {
        [STAThread]
        static void Main(string[] args)
        {
            DateTime dt = DateTime.Now;
            System.Globalization.Calendar objCal = CultureInfo.CurrentCulture.Calendar;    
            int weekofyear = objCal.GetWeekOfYear(dt, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
            
            Console.WriteLine(weekofyear.ToString() ) ;
        }
    }
}