How to Add Custom Timespan
Adding Custom Timespans
Here is an example of how to add custom time spans to the filters. Apply this code at ConfigureSettings in Global.asax. CustomTimePeriod customTimePeriod = AdHocSettings.CustomTimePeriod[key];
TimeSpan period = customTimePeriod.Period;
if (period.Ticks >0)
{
startDate=now+period;
}
else
{
endDate=now;
startDate=now.period;
}