How-to-calculate-difference-between-dates.md
... ...
@@ -0,0 +1,16 @@
1
+#How to calculate difference between dates?
2
+
3
+[[_TOC_]]
4
+
5
+###Find the difference between two dates
6
+
7
+The difference between two dates can be calculated using the simple Arithmetic feature in the Report Designer.
8
+Select the two dates you want to use. In our sample below we use ShippedDate and OrderDate. Then select the "minus" sign ([-]) in the arithmetic column (labeled "A") for the second date. The result of this expression will be the difference between the two dates in days.
9
+
10
+*Note: By default the result is an integer, number of days, but you can also set specified decimal places. Use DateArithmeticDecimalPlaces to do this.*
11
+
12
+```c#
13
+AdHocSettings.DateArithmeticDecimalPlaces = 3;
14
+```
15
+
16
+Please see the following simple example of date arithmetic use:
... ...
\ No newline at end of file