How-to-Add-a-Custom-Timespan-Type.md
... ...
@@ -9,13 +9,13 @@ Here is an example of how to add custom time spans to the filters. Apply this co
9 9
```csharp
10 10
CustomTimePeriod customTimePeriod = AdHocSettings.CustomTimePeriod[key];
11 11
TimeSpan period = customTimePeriod.Period;
12
-if (period.Ticks >0)
12
+if (period.Ticks > 0)
13 13
{
14
- startDate=now+period;
14
+ startDate = now + period;
15 15
}
16 16
else
17 17
{
18
- endDate=now;
19
- startDate=now.period;
18
+ endDate = now;
19
+ startDate = now.period;
20 20
}
21 21
```
... ...
\ No newline at end of file