Required functionality is to get the return week number of a given date.
8th march 2010 is the given date then it should return "2" as 2nd week.I have implemented a below method which return week number of the year, whereas requirement is return week no of the current month.
Could any body help me out from this scenario.
public static int GetWeekNumber(DateTime dtPassed)
CultureInfo ciCurr = CultureInfo.CurrentCulture;
int weekNum = ciCurr.Calendar.GetWeekOfYear(dtPassed, CalendarWeekRule.FirstFourDayWeek , DayOfWeek.Monday);
Thanks in Advance.
Sr. Software Engineer.