I try to write and I did it.
Here is the code.
The startDate and endDate comes in dd-MM-yyyy format and the 'Days' variable contains the days (eg.,'Monday Wednesday Friday').
Code:
public ArrayList BetweenDates(string startDate, string endDate) { DateTime sdt = DateTime.ParseExact(startDate, "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture);
Leave a comment: