How to Find 5th or ending date of a particular day in a month based on date of the same month
问题 I have been trying to find the 5th week date of a day in a month like 5th week Monday date, 5th week Tue date, Wed... and so on based on the date from the same month. This date could belong to any week of same month. I tried like DateTime MonthEventDate=05/01/2016; //Date format in dd/MM/yyyy format DayOfWeek EventDay="Sunday"; //For Example i want to find 5th Sunday in January Month, but days too will change everytime based on user selection string SelectedWeek="5"; //Here i'm getting the