Esempio n. 1
0
        private DateTime getFilteredStartTime()
        {
            //basically we want to set start time depending on x months earlier than end time
            var end   = getFilteredEndTime();
            var start = end.AddMonths(0 - _filters.getMonths()).AddDays(7); //cheating by adding enough days to get into next month... issue with 27th of february - 1 month = 27th of january

            return(new DateTime(start.Year, start.Month, 1));
        }