The last parameter DayOfWeek.Monday the function will start first day of week on Monday.
int intWeekNO = 0;
intWeekNO = System.Globalization.CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(
pTimesheetDate,
System.Globalization.CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
Sunday, November 4, 2012
Get week no from date time C# .Net
Posted by demo at 11:10 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment