Izenda, LLC

Ad Hoc Reports & Dashboards for ASP.NET Apps

Free Trial

Izenda Reports is licensed on a "per user" or "per server" basis. Please complete this form to receive a price quote.

All fields are required.

The live demo demonstrates Izenda reports with the Northwind Sample database. To login, please register below.

All fields are required.

Please register to try Izenda reports on your data today.

All fields are required.

How to Add Custom Timespan

Expand / Collapse
 

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;
} 



Details
Type: FAQ
Options