getDaysInInterval

Returns number of days in interval between this date and to date (both inclusive). This means that this method returns 1 when this and to are equal.