Monday, 15 March 2010

c# - Calculating Number of week with a condition -


I plan to create a scheduling application. According to business logic, the first day of the week begins with the end of your vacation .. For example: If my vacation year has ended and I will start my work from today..It will be considered as my first week at work According to the calendar in 25. I will again be eligible for a holiday for the week, but not from the actual calendar but from the system which is calculating my weeks from the last time Land I came back from one.

Can someone suggest me a solution? Thank you.

You can use class weeks, which supports different week calculations:

  timecallendar calendar = new time calendar (new timecallendar canguit {year type = yype type ipo 8601}); Week of week = new week (new date time (2012, 01, 01), calendar); Console.light line ("week #:", week before week);    

No comments:

Post a Comment