27 Jun, 2008 in Programming by

Here’s a little C# method I created recently. I needed a way to get all the dates between 2 dates as objects for use in a custom calendar control. private static List<DateTime> CreateRange(DateTime startDate, DateTime endDate) { List<DateTime> r = new List<DateTime>();   int startYear = startDate.Year; int startMonth = startDate.Month; int endYear = endDate.Year; […]